POST
Returns the finished audio as raw bytes, with the details of what was produced in the response headers. For audio that starts playing before synthesis completes, use streaming instead.

Body

string
required
The text to speak. Maximum 5,000 characters.
string
required
Voice ID, for example layla. See Voices.
string
default:"sada-1"
sada-1 (flagship) or nabra-1 (fast, economical). See Models.
string
default:"mp3"
mp3, wav, opus, or mulaw. Overrides the Accept header when both are present.
integer
Output sample rate in Hz. Defaults to the format’s native rate — 24000 for mp3, wav, and opus; 8000 for mulaw.
number
default:"1.0"
Speaking rate. Below 1.0 is slower, above is faster.
number
Pitch adjustment. Only applies to nabra-1sada-1 ignores it.

Formats

mulaw at 8 kHz is what telephony systems actually carry. Requesting it directly avoids a transcoding step and the quality loss that comes with it.
You can also negotiate the format with the Accept header, which is how most audio clients ask:
An explicit format in the body wins over Accept.

Response

Raw audio bytes with Content-Type set for the format, plus the X-Voho-* headers describing the result.

Errors

unavailable is transient. Retry with backoff. synthesis_failed usually is not — check your request before retrying.

Authorizations

Authorization
string
header
required

API token from the Voho console. Begins with voho_sk_live_.

Body

application/json
text
string
required

Text to speak. Maximum 5,000 characters.

Maximum string length: 5000
Example:

"أهلاً بك في فوهو"

voice
string
required

Voice ID from the catalog.

Example:

"layla"

model
enum<string>
default:sada-1
Available options:
sada-1,
nabra-1
format
enum<string>
default:mp3

Overrides the Accept header when both are present.

Available options:
mp3,
wav,
opus,
mulaw
sample_rate
integer

Defaults to the format's native rate (24000, or 8000 for mulaw).

speed
number
default:1

Speaking rate. Below 1.0 is slower.

pitch
number

Pitch adjustment. Only applies to nabra-1; sada-1 ignores it.

Response

Audio bytes.

The response is of type file.