本文档由 AiQiji 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
curl --location --request POST 'http://localhost:3000/api/speech/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "你好,你是谁呀?",
"voice": "zh-CN-XiaoxiaoNeural", // 可选
"rate": "+0%", // 可选
"pitch": "+0Hz" // 可选
}'{"success":false,"message":"语音合成失败","error":"Command failed: edge-tts --voice \"zh-CN-XiaoxiaoNeural\" --rate=\"+0%\" --pitch=\"+0Hz\" --text \"你好,你是谁呀?\" --write-media \"/www/wwwroot/小程序后端/src/temp/speech_1748581958224.mp3\"\n/bin/sh: edge-tts: command not found\n"}