curl --location --request PUT 'https://api.myvocal.ai/sound_clone/api/v1/voices/tts/7812' \
--header 'accessKey: xxx' \
--form 'files=@"xxx/xxx.mp3"'
{
"code": 1,
"message": "Success",
}
{
"code": -1,
"message": "error msg",
}
Voice
Improve a TTS voice
Edit a custom TTS voice. You can upload more files to improve your voice.(❗❗❗File-related interfaces are not supported, please use interface tools for requests.)
PUT
/
sound_clone
/
api
/
v1
/
voices
/
tts
/
{voiceId}
curl --location --request PUT 'https://api.myvocal.ai/sound_clone/api/v1/voices/tts/7812' \
--header 'accessKey: xxx' \
--form 'files=@"xxx/xxx.mp3"'
{
"code": 1,
"message": "Success",
}
{
"code": -1,
"message": "error msg",
}
Header
string
required
You can copy your api-key on https://www.myvocal.ai/profile after you have subscribed to Pro or Business Plan.
Body
string
required
Your voiceId
Files
required
Please provide mp3/wav/m4a files. A single file cannot exceed 10MB, and up to 25 files can be uploaded (including files provided when you add voice).
Response
number
Indicates whether the call was successful. 1 if successful.
string
When an exception occurs, specific exception information will be provided in the message.
curl --location --request PUT 'https://api.myvocal.ai/sound_clone/api/v1/voices/tts/7812' \
--header 'accessKey: xxx' \
--form 'files=@"xxx/xxx.mp3"'
{
"code": 1,
"message": "Success",
}
{
"code": -1,
"message": "error msg",
}
