Colossyan API Documentation
Text to Speech
Text to Speech
We offer the option to listen to the voices with your custom text input.
Using the API
To post an audio generation job, you should send an authenticated POST request to the following endpoint.
https://app.colossyan.com/api/audio-generation-jobs
The request body should have the following values:
Key | Default | Required | Type | Description |
---|---|---|---|---|
text | - | Yes | string | The text we want to turn into speech. |
speaker_id | - | Yes | string | The voice id of the desired speaker. See: voices |
speed | 1 | No | number | The talking speed of the speaker. Minimum: 0.9 . Maximum: 1.1 . |
pitch | 1 | No | number | The pitch of the voice. Minimum: 0.9 . Maximum: 1.1 . |
pause | 0 | No | number | Pause between sentences. Minimum: 0 . Maximum: 5 . |
The response body will have the following values:
Key | Description |
---|---|
url | The url to the generated audio file. |