{
"max_tokens": 2048,
"response_format": "mp3",
"sample_rate": 44100,
"stream": true,
"speed": 1,
"gain": 0,
"model": "fnlp/MOSS-TTSD-v0.5",
"input": "[S1]你好,你今天怎么样?[S2]我很好,谢谢你的询问![S1]很高兴听到这个消息",
"voice": "fnlp/MOSS-TTSD-v0.5:anna"
}
curl --location --request POST 'https://api.302.ai/siliconflow/v1/audio/speech' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"max_tokens": 2048,
"response_format": "mp3",
"sample_rate": 44100,
"stream": true,
"speed": 1,
"gain": 0,
"model": "fnlp/MOSS-TTSD-v0.5",
"input": "[S1]你好,你今天怎么样?[S2]我很好,谢谢你的询问![S1]很高兴听到这个消息",
"voice": "fnlp/MOSS-TTSD-v0.5:anna"
}'
{
"url": "https://file.302.ai/gpt/imgs/20250804/52dd0f00ad064d5296e1a70397475929.mp3"
}