Skip to main content

Module tts

Module tts 

Source
Expand description

Text-to-Speech (TTS) Plugin Module

Provides TTS capabilities using a generic TTS engine interface. This module is designed to work with multiple TTS backends.

Note: The Kokoro TTS integration is currently prepared but commented out due to compatibility issues with the ort (ONNX Runtime) dependency. The plugin structure is ready for use with any TTS backend.

Modules§

cache
Model Cache Management
model_downloader
Hugging Face Model Downloader

Structs§

AudioPlaybackConfig
Audio playback configuration
MockTTSEngine
A mock TTS engine for testing and development.
TTSCommand
TTS command structure for execute()
TTSPlugin
TTS Plugin implementing AgentPlugin
TTSPluginConfig
TTS plugin configuration
TextToSpeechTool
Text-to-Speech tool executor
VoiceInfo
Voice metadata information

Traits§

TTSEngine
Abstract TTS engine trait for extensibility

Functions§

play_audio
Play audio data synchronously (fallback when rodio feature is not enabled)
play_audio_async
Play audio asynchronously