Audio
Generate Speech from Text
Generate speech from text using the specified voice and model.
This endpoint synchronously generates audio and returns the binary data directly. The request will block until the TTS generation is complete.
post/v1/audio/text-to-speech/{voice_id}
Request
- Base URLhttps://api.mirage.app (the document declares no server; this is the origin it was published from)
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
voice_idstring required
Voice ID to use for TTS generation
Headers
x-api-keystring required
API Key for authentication
Request body
Example request
{
"text": "Hello, welcome to Mirage!",
"model": "mirage-audio-1"
}Response
Returns the generated audio file as binary data
unknown required
Changes
No recorded changes to this operation across all 15 revisions of this API.