v1

latestOpenAPI 3.1.02026-07-2671117149.2 KB
APIs
Text-to-Speech

Create TTS (Deprecated)

Deprecated. For new integrations, use POST /tts-stream for streaming text-to-speech.

post/tts

Request body

project_namestring nullable

Enter a distinctive name for your project that reflects its purpose or content. This name will be displayed in your CAMB.AI workspace dashboard and used to organize related assets, transcriptions, etc.. . Choose something memorable that helps you quickly identify this specific project among your other voice, audio and localization tasks.

project_descriptionstring nullable

Provide details about your project's goals and specifications. Include information such as the target languages for translation or dubbing, desired voice characteristics, emotional tones to capture, or specific audio processing requirements, outlining the workflow here can serve as valuable documentation for organizational purposes.

textstring required

The text to be converted to speech

voice_idinteger required

The voice ID to be used to generate speech.

languagestring required
gender0 | 1 | 2 | 9

The gender of the speaker.

{"stackTrail":"components:schemas:CreateTTSRequestPayload:allOf:properties:age","oasType":"schema","type":"unknown","title":"Age","description":"The age of the speaker of in the speech to be generated."}

Response

Successful Response

task_idstring