开始生成语音

0 / 10000

📱 阅读 APP 集成(源阅读)

🔌 API 接口(无需 Key)

POST /v1/audio/speech
Content-Type: application/json
input string 必填 · 要合成的文本
voice string 选填 · 默认 zh-CN-Xiaoxiao:DragonHDFlashLatestNeural
speed number 选填 · 0.5~2.0
pitch string 选填 · -50~50
style string 选填 · 如 chat / cheerful
outputFormat string 选填 · 音频格式
fetch('/v1/audio/speech', {
  method:'POST',
  headers:{'Content-Type':'application/json'},
  body:JSON.stringify({
    input:'这是一段测试文本',
    voice:'zh-CN-Xiaoxiao:DragonHDFlashLatestNeural',
    speed:1.0,
    style:'cheerful'
  })
}).then(r=>r.blob()).then(b=>URL.createObjectURL(b))