Personalizing Your Voice
Voice Personalization Options
You can shape the character of your generated voice by specifying these key attributes:- Gender: Select the voice gender with a simple numeric code:
- Age: Add in the voice age to reflect the intended audience or context.
Selecting Your Voice
Our platform offers two approaches to finding the perfect voice:-
Choose from our voice library: Browse our collection of ready-to-use voices through the
/list-voices
endpoint to find the perfect match for your project. -
Use your signature voice: Utilize the
/create-custom-voice
endpoint to clone an audio recording containing your signature voice.
Language Support
Our technology supports numerous languages and dialects for global reach. To see whatβs available:- Check the
/source-languages
or/target-languages
endpoints for a complete list of supported languages with their corresponding IDs.
How the Process Works
This endpoint uses an asynchronous workflow, which means your application can keep doing other things while the speech is being generated. Hereβs how it works, step-by-step:Submit Your Request
Receive Your `task_id`
task_id
. This lets you check back later to see how things are goingβjust like tracking a package.Track Progress of Your Speech Generation
task_id
to check the current status of your request by calling the /tts/{task_id}
endpoint. Youβll know whether your audio is still being generated, completed, or if something went wrong.Retrieve the Final Audio File
SUCCESS
), youβll get a run_id
. Use this ID to download your final audio file from the /tts-result/{run_id}
endpoint.Example: Creating Your First Audio
Hereβs a practical example showing how to generate speech about Mars:Authorizations
The x-api-key
is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
Body
Response
Successful Response
A JSON that contains the unique identifier for the task. This is used to query the status of the story task that is running. It is returned when a create request is made for a text-to-speech.