Text to speech
speech_createRead text aloud with a text-to-speech model from the Hubris catalogue and get the audio file back as audio content. Same as POST /v1/audio/speech.
Many models need a voice: the list of voices is on the model card (models_get_pricing → supportedVoices) — pick one from there. The answer is mp3 unless you ask for pcm. Up to 5 000 characters per call, a few minutes of speech; split longer texts or use the HTTP API (POST /v1/audio/speech).
Spends money from the account balance: priced per character of text or per second of audio, depending on the model — models_get_pricing shows which. The charge shows up in usage_get.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Text to read aloud, up to 5 000 characters. | |
| model | Yes | Speech model id, vendor included and matched exactly, e.g. "microsoft/mai-voice-2-flash". Find one with models_search and tool: "speech_create". | |
| voice | No | Voice name from the model card. Required when the model has a list of voices. | |
| response_format | No | Audio format: "mp3" (default here, plays everywhere) or "pcm" (raw 16-bit samples). |