Upload Voice
语音系列
上传参考音频
Upload user-provided voice style, which can be in base64 encoding or file format. Refer to (https://docs.siliconflow.com/capabilities/text-to-speech#2-2)
POST
Upload Voice
Authorizations
Body
multipart/form-data
- Option 1
- Option 2
Predefined voice style model name
Available options:
FunAudioLLM/CosyVoice2-0.5B Example:
"FunAudioLLM/CosyVoice2-0.5B"
User-defined voice style name
Example:
"your-voice-name"
text
string
default:In the midst of ignorance, a day in the dream comes to an end, and a new cycle begins.
required
Corresponding text content for the audio
Example:
"In the midst of ignorance, a day in the dream comes to an end, and a new cycle begins."
Audio file encoded in base64 with the header format of data:audio/mpeg;base64
Example:
"data:audio/mpeg;base64,aGVsbG93b3JsZA=="
Response
Successful response
Example:
"speech:your-voice-name:xxx:xxx"