Skip to main content
POST
/
audio
/
speech
Create Speech
curl --request POST \
  --url https://api.siliconflow.cn/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "fnlp/MOSS-TTSD-v0.5",
  "input": "[S1]Hello, how are you today?[S2]I'\''m doing great, thanks for asking![S1]That'\''s wonderful to hear "
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Body

application/json
  • MOSS-TTSD-v0.5
  • CosyVoice2-0.5B
model
enum<string>
required
Available options:
fnlp/MOSS-TTSD-v0.5
input
string
required
Required string length: 1 - 128000
Example:
max_tokens
integer
default:2048
Example:
references
object[]
voice
enum<string>
Available options:
fnlp/MOSS-TTSD-v0.5:alex,
fnlp/MOSS-TTSD-v0.5:anna,
fnlp/MOSS-TTSD-v0.5:bella,
fnlp/MOSS-TTSD-v0.5:benjamin,
fnlp/MOSS-TTSD-v0.5:charles,
fnlp/MOSS-TTSD-v0.5:claire,
fnlp/MOSS-TTSD-v0.5:david,
fnlp/MOSS-TTSD-v0.5:diana
response_format
enum<string>
default:mp3
Available options:
mp3,
opus,
wav,
pcm
sample_rate
number
default:32000
stream
boolean
default:true
speed
number
default:1
Required range: 0.25 <= x <= 4
gain
number
default:0
Required range: -10 <= x <= 10

Response