Skip to main content
POST
Upload Voice

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer

Body

multipart/form-data
model
enum<string>
required

Predefined voice style model name

Available options:
FunAudioLLM/CosyVoice2-0.5B
Example:

"FunAudioLLM/CosyVoice2-0.5B"

customName
string
default:Silicon flow voice style model
required

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
string

Audio file encoded in base64 with the header format of data:audio/mpeg;base64

Example:

"data:audio/mpeg;base64,aGVsbG93b3JsZA=="

Response

Successful response

uri
string
Example:

"speech:your-voice-name:xxx:xxx"