edge tts 语音合成测试

API 调用示例

curl -X POST https://你的worker地址/v1/audio/speech   -H "Content-Type: application/json"   -H "Authorization: Bearer your-api-key"   -d '{
    "model": "tts-1",
    "input": "你好,世界!",
    "voice": "zh-CN-XiaoxiaoNeural",
    "response_format": "mp3",
    "speed": 1.0,
    "pitch": 1.0,
    "style": "general"
  }' -

实时请求参数

{
    "model": "tts-1",
    "input": "你好,世界!",
    "voice": "zh-CN-XiaoxiaoNeural",
    "response_format": "mp3",
    "speed": 1.0,
    "pitch": 1.0,
    "style": "general"
}