Skip to main content
POST
Synthesize speech from text

Body

application/json

Text-to-speech synthesis request

text
string
required

Text to synthesize into speech

Example:

"Hello, how are you today?"

model
string
required

TTS model ID

Example:

"melo-tts-en"

language
string

ISO 639-1 language code

Example:

"en"

voice
string

Voice identifier (if model supports multiple voices)

Example:

"default"

gender
enum<string>

Voice gender preference (if supported by model)

Available options:
male,
female,
neutral
Example:

"neutral"

style
string

Speaking style (if supported by model)

Example:

"neutral"

sample_rate
integer

Output sample rate in Hz (if supported by model). Audio will be resampled if different from native rate.

Example:

44100

parameters
object

Additional synthesis parameters (e.g., speaking_rate, pitch, gain)

Example:
output_speaker
boolean

Output audio data results to speaker

Example:

false

Response

Speech synthesized successfully

Raw PCM audio data (16-bit little-endian). Not WAV — convert before playback.