Generate speech
generate_speechConvert text to spoken audio using Poe text-to-speech bots, then save the resulting audio file locally.
Instructions
Turn text into spoken audio with a Poe text-to-speech bot (default: ElevenLabs; others include ElevenLabs-v3, Hailuo-Speech-02, OpenAI TTS bots). Saves an audio file locally.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The words to speak | |
| model | No | Poe bot name, e.g. ElevenLabs, ElevenLabs-v3 | |
| voice | No | Voice name, if the bot supports choosing one | |
| output_dir | No | Folder to save files in. Defaults to /root/poe-media | |
| parameters | No | Extra bot-specific parameters sent with the request (Poe's extra_body), e.g. {"aspect_ratio": "16:9"}. Names differ per bot; see the bot's page at poe.com/<bot>/api. | |
| prompt_flags | No | Poe-style flags appended to the prompt, e.g. "--aspect 16:9 --duration 8". Use when a bot ignores `parameters`. |