上传参考音频
Upload user-provided voice style, which can be in base64 encoding or file format. Refer to (https://docs.siliconflow.cn/capabilities/text-to-speech#2-2)
Authorizations
Use the following format for authentication: Bearer <your api key>
Body
Predefined voice style model name
FunAudioLLM/CosyVoice2-0.5B
"FunAudioLLM/CosyVoice2-0.5B"
User-defined voice style name
"your-voice-name"
Corresponding text content for the audio
"在一无所知中, 梦里的一天结束了,一个新的轮回便会开始"
Audio file encoded in base64 with the header format of data:audio/mpeg;base64
"data:audio/mpeg;base64,aGVsbG93b3JsZA=="
Predefined voice style model name
FunAudioLLM/CosyVoice2-0.5B
"FunAudioLLM/CosyVoice2-0.5B"
User-defined voice style name
"your-voice-name"
Corresponding text content for the audio
"在一无所知中, 梦里的一天结束了,一个新的轮回便会开始"
Audio file encoded in base64 with the header format of data:audio/mpeg;base64
"data:audio/mpeg;base64,aGVsbG93b3JsZA=="
Predefined voice style model name
FunAudioLLM/CosyVoice2-0.5B
"FunAudioLLM/CosyVoice2-0.5B"
User-defined voice style name
"your-voice-name"
Corresponding text content for the audio
"在一无所知中, 梦里的一天结束了,一个新的轮回便会开始"
File to upload
Response
"speech:your-voice-name:xxx:xxx"