speech
Method
This is a method of the AudioAgent class in the audio_agent module.Convert text to speech.
Signature
Parameters
Text to convert to speech
Path to save audio file (optional)
Voice to use (e.g., “alloy”, “echo”, “fable”)
Speech speed (0.25 to 4.0)
Audio format (mp3, opus, aac, flac, wav)
Override model for this call **kwargs: Additional provider-specific parameters
Returns
Audio response object with stream_to_file() method

