text_to_speech
Synthesize text into speech audio and save it to any file path. Choose from multiple voices, languages, and output formats.
Instructions
Convert text to speech audio using Smallest AI's Lightning TTS. Saves the audio file to the specified path. IMPORTANT: Always ask the user where to save the file before calling. Suggest ~/Desktop/.wav as default. Do NOT retry if successful — the file is saved even if inline audio rendering fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to synthesize into speech | |
| output_path | Yes | File path to save the audio to (e.g. ~/Desktop/output.wav). Ask the user where to save. | |
| voice_id | No | Voice ID to use (e.g. emily, daniel, rachel, yuvika). Use get_voices to see available voices. | emily |
| model | No | TTS model to use. Default: lightning-v3.1 | lightning-v3.1 |
| language | No | Language code (e.g. en, hi, ta, es). Default: en. | en |
| speed | No | Speech speed multiplier (0.5-2.0). Default: 1.0 | |
| sample_rate | No | Audio sample rate in Hz (8000, 16000, 24000, 44100). Default: 24000 | |
| output_format | No | Output audio format. Default: wav | wav |