text_to_speech
Convert text to spoken audio. Billed per input character on your key.
Args:
text: the text to speak.
voice: voice id. The OpenAI voice names (alloy / echo / fable / onyx / nova / shimmer) are
accepted, but on the default model they are all mapped to the same default voice, so
they sound identical. To pick a different voice, pass a voice id supported by the model
(for the default model, e.g. Cherry or Ethan).
Returns a short status line plus the generated audio as an audio content block
(mimeType as returned by the gateway, e.g. audio/mpeg).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| voice | No | alloy |