Package uno.anahata.ai.media


package uno.anahata.ai.media
Provides a comprehensive framework for handling audio and other media, neatly separating high-level, AI-callable tools from their low-level implementations.

Architecture

The package is divided into two main sub-packages:
  • functions.spi: Contains the high-level, AI-callable tools, such as AudioTool and RadioTool. These classes are designed to be simple and declarative, exposing media capabilities in a way that is easy for the AI to understand and use.
  • util: Contains the low-level implementation details for media handling, such as the Microphone class, which manages the raw audio capture, and the AudioPlayer, which handles non-blocking sound playback.
This separation of concerns makes the system both robust and extensible. The low-level utilities in the util package can be tested and maintained independently, while the AI tools in the functions package provide a stable and consistent interface for the AI.