voice_id returned with Text To Audio Endpoint

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/voice/voice_upload' \

Body Attributes

key
string
required
Your API Key used for request authorization.
name
string
required
Display name of the voice you want to upload.
init_audio
string
required
Audio URL of the voice sample. Only mp3 and wav are allowed.
Recommended length: 10โ€“25 seconds for best results.
language
string
default:"english"
The language of the voice sample. It must match the actual spoken language of the uploaded audio. Default: english.

Body

{      
    "key":"enterprise_api_key",    
    "name":"Jacob",    
    "init_audio":"https://pub-f3505056e06f40d6990886c8e14102b2.r2.dev/audio/jacob.wav",    
    "language":"english"
}