Create Voiceover

POST

/v1/audio/voiceover/create

This endpoint is for creating voiceovers. Although it supports many parameters, in its simplest form, you just need to send a prompt and the system will use the defaults for the rest.

Request Example

Below is the simplest example of creating a voiceover. You just send a prompt and the system will use the defaults for the rest.

Response

{

"outputs": [

{

"id": "bc54cad2-1e40-49c1-a890-b3c06a9240ac",

"url": "https://bvoi.stablecog.com/acfc6546-a1b5-417a-b58c-3f063a0a2799.mp3",

"audio_duration": 5.3976874

}

],

"remaining_credits": 1485,

"settings": {

"model_id": "0f442a3e-cf53-490b-b4a9-b0dda63e9523",

"speaker_id": "39f7fc5d-9031-4932-a4d5-b196bb06e203",

"temperature": 0.7,

"seed": 12447287,

"denoise_audio": true,

"remove_silence": true

}

}

Request Headers

Authorization required

string

Send your API key as the value of this header in the following form:
Authorization: Bearer <YOUR_STABLECOG_API_KEY>.

Request Body

prompt required

string

Tell the model what voiceover to generate.

model_id

(enum) TVoiceoverModelID

The model that will be used for generating the voiceover.

speaker_id

(enum) TVoiceoverSpeakerID

The model that will be used for generating the voiceover.

temperature

min0  max1 | float

How diverse the voiceover will be. Higher values are make the voice more variable while lower make it more stable.

denoise_audio

boolean

Remove background noise from the generated voiceover.

remove_silence

boolean

Remove the silent sections from the generated voiceover.

Response Body

outputs

array of TOutput

Generated voiceover outputs.

remaining_credits

float

Your remaining credits after this request.

settings

(object) TVoiceoverSettings

Settings for the generation. Useful if you are using the defaults and want to know what they are.

© 2024 io.net, inc.