Synthesize Speech
synthesize_speechGenerate natural speech audio from English text.
Produces high-quality speech with 12 English voices. Returns base64-encoded WAV audio (16-bit PCM, 24kHz mono) along with metadata.
Available voices:
af_heart (default), af_bella, af_nicole, af_sarah, af_sky (American female)
am_adam, am_michael (American male)
bf_emma, bf_isabella (British female)
bm_george, bm_lewis, bm_daniel (British male)
Args: text: English text to synthesize (1-5000 characters). voice: Voice ID. See list above. Defaults to 'af_heart'. speed: Speed multiplier from 0.5 to 2.0 (default: 1.0).
Returns: dict with keys: - audio_base64 (str): Base64-encoded WAV audio (16-bit PCM, 24kHz) - duration_ms (str): Audio duration in milliseconds - voice (str): Voice ID used - text_length (str): Input text character count - processing_ms (str): Synthesis time in milliseconds
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | English text to convert to speech. Max 5000 characters. | |
| speed | No | Speech speed multiplier (0.5 = half speed, 2.0 = double). | |
| voice | No | Voice ID (e.g. 'af_heart', 'am_adam'). Uses default if omitted. |