AudioAgent
Defined in the agents module.Rust AI Agent SDK A specialized agent for audio processing using AI models. Provides Text-to-Speech (TTS) and Speech-to-Text (STT) capabilities.
Fields
| Name | Type | Description |
|---|---|---|
name | String | Agent name |
model | String | LLM model (e.g., “openai/tts-1”, “openai/whisper-1”) |
config | AudioConfig | Audio configuration |
verbose | bool | Verbose output |
Methods
new
name
model
speech
| Name | Type |
|---|---|
text | &str |
output_path | &str |
transcribe
| Name | Type |
|---|---|
audio_path | &str |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 110
