Speaks the text in file-script-text and returns the audio without storing it, so you can preview a greeting, hold message, or music on hold (MoH) file before you create it. Any user can synthesize speech for itself, and Office Manager, Site Manager, Call Center Supervisor, Route Manager, Reseller, and Super User for any user in the domain. Text to speech must be enabled for the user in the path.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Body Params application/json
Examples
Responses
🟢200OK
audio/wav
The spoken audio, audio/wav (8 kHz, 8-bit, mono), named tts_<hash>.wav in Content-Disposition. The same words in the same voice for the same user are rendered once and served from cache afterward. Each new text is a call to the voice service, billed to the owner in the path: that user, or the domain for a domain-owned path. There is no usage cap beyond the platform's general request rate limit. The body is binary and cannot be shown.
🟠400Bad Request
🟠401Authentication Required
🟠404Record not found
🟢206Partial Content
🟠403Forbidden
🔴500Internal Server Error
🔴503Service Unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'https://awqacore01.crexendocloud.com/ns-api/v2/domains//users//voices' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data'{
"file-script-text": "Hi, you have reached extension 1001. Please leave a message.",
"text-to-speech-voice-id": "en-US-Wavenet-C",
"text-to-speech-language": "en-US"
}'