Aliyun API
Generates speech audio from the provided text using Aliyun TTS service
textstring
Length
1 <= length <= 4096
voice?string
The voice to use for speech generation. Default is longxiaochun.
Default
"longxiaochun"
format?string
The audio format to use for the output.
Default
"mp3"
Value in
"mp3" | "wav" | "pcm"
sampleRate?integer
The sample rate for the audio output in Hz. Default is 22050.
Default
22050
volume?integer
The volume of the synthesized speech (0-100). Default is 50.
Default
100
Range
0 <= value <= 100
rate?number
The speed of the synthesized speech (0.5-2). Default is 1.
Default
1
Range
0.5 <= value <= 2
pitch?number
The pitch of the synthesized speech (0.5-2). Default is 1.
Default
1
Range
0.5 <= value <= 2
tokenstring
DashScope API key for authentication
Length
1 <= length
Response Body
curl -X POST "https://edge-workers.laplace.cn/laplace/tts-aliyun" \
-H "Content-Type: application/json" \
-d '{
"text": "感谢ドラゴンラプラスWeChat的SC:一发sc没被念到我就冷汗直流心跳加速头皮发麻双手痉挛两腿打颤,还不好意思刷弹幕说你漏了,我好怕你看到了装作没看到。我的sc通常很短只有一小时,只有短短的3600秒,但它存在的时候,我会用心跳来为它倒数。私のBANを解除してください。もう二度とスパムしません😭",
"token": "string"
}'
null
{
"success": false,
"message": "string"
}
{
"success": false,
"message": "string"
}