Audio Agent • Rust AI Agent SDK
AudioAgent: A specialized agent for audio processing using AI models. Provides Text-to-Speech (TTS) and Speech-to-Text (STT) capabilities.
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.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: AudioAgent"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffFields
| 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
fn new() -> AudioAgentBuilderCreate a new AudioAgent builder
name
fn name(&self) -> &strGet agent name
model
fn model(&self) -> &strGet model
speech
fn speech(&self, text: &str, output_path: &str) -> Result<String>Generate speech from text (placeholder – requires LLM integration)
Parameters:
| Name | Type |
|---|---|
text | &str |
output_path | &str |
transcribe
fn transcribe(&self, audio_path: &str) -> Result<String>Transcribe audio to text (placeholder – requires LLM integration)
Parameters:
| Name | Type |
|---|---|
audio_path | &str |
Source
View on GitHubpraisonai/src/agents/mod.rs at line 110