text_to_voice_preview_stream
Streams MP3 audio preview for a generated voice ID, returning audio/mpeg bytes; set output_path to save the file or omit it for inline base64.
Instructions
Text To Voice Preview Streaming Returns audio/mpeg bytes; pass output_path to save them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"generated_voice_id": "<generated_voice_id>"
},
"name": "text_to_voice_preview_stream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | No | Where to write the returned bytes. Relative paths resolve against ELEVENLABS_OUTPUT_DIR. Omit it to get the data inline as base64 (small files only). | |
| generated_voice_id | Yes | The generated_voice_id to stream. |