speak
Convert text into an ElevenLabs audio file and return its path; optionally send the audio to a handle or chat, where Messages displays it as an attachment.
Instructions
Turn text into speech with ElevenLabs and return the audio file path, optionally sending it. Note that Messages shows script-sent audio as an attachment, not as a native voice-note bubble.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Optional. If given, the audio is sent to this handle or chat. | |
| text | Yes | ||
| confirm | No | Must be true when `to` is given, because the audio is then sent and can't be unsent. | |
| voiceId | No | Overrides ELEVENLABS_VOICE_ID. |