AudioConfig
Defined in the agents module.Rust AI Agent SDK Configuration for audio processing settings.
Fields
| Name | Type | Description |
|---|---|---|
voice | String | Voice for TTS (e.g., “alloy”, “echo”, “fable”, “onyx”, “nova”, “shimmer”) |
speed | f32 | Speed multiplier (0.25 to 4.0) |
response_format | String | Response format (mp3, opus, aac, flac, wav, pcm) |
language | Option<String> | Language for STT |
temperature | f32 | Temperature for STT |
timeout | u32 | Timeout in seconds |
api_base | Option<String> | API base URL |
api_key | Option<String> | API key |
Methods
new
voice
| Name | Type |
|---|---|
voice | impl Into<String> |
speed
| Name | Type |
|---|---|
speed | f32 |
response_format
| Name | Type |
|---|---|
format | impl Into<String> |
language
| Name | Type |
|---|---|
language | impl Into<String> |
timeout
| Name | Type |
|---|---|
timeout | u32 |
Source
View on GitHub
praisonai/src/agents/mod.rs at line 35
