Audio

Text-to-speech

Synthesizes speech from text. Returns raw WAV audio data. Supports voice cloning via ref_audio (base64 WAV).

post/v1/audio/speech

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/audio/speech
  • Auth: HTTP bearer

Request body

inputstring required

Text to synthesize

voicestring

Voice name

speednumber

Speech speed multiplier

modelstring

TTS model to use

ref_audiostring

Base64-encoded WAV for voice cloning (Qwen3 TTS only)

ref_audio_mime_typestring

MIME type of ref_audio

Response

WAV audio data

Changes

No recorded changes to this operation across all 1 revision of this API.