curl "https://eastasia.tts.speech.microsoft.com/cognitiveservices/v1?" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0" -H "Accept: */*" -H "Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2" --compressed -H "Referer: https://cn.bing.com/" -H "Content-Type: application/ssml+xml" -H "Authorization: Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJ1cm46bXMuY29nbml0aXZlc2VydmljZXMiLCJleHAiOiIxNTczOTEyNDM1IiwicmVnaW9uIjoiZWFzdGFzaWEiLCJzdWJzY3JpcHRpb24taWQiOiI3MTU5YWUyNzI1N2M0ZTVmOWE5MDM5NzM4ZDU4NzBjMCIsInByb2R1Y3QtaWQiOiJTcGVlY2hTZXJ2aWNlcy5TMCIsImNvZ25pdGl2ZS1zZXJ2aWNlcy1lbmRwb2ludCI6Imh0dHBzOi8vYXBpLmNvZ25pdGl2ZS5taWNyb3NvZnQuY29tL2ludGVybmFsL3YxLjAvIiwiYXp1cmUtcmVzb3VyY2UtaWQiOiIvc3Vic2NyaXB0aW9ucy9jNmNjNDc4MS1jZmU1LTQwZjAtYTJjOC00MWFhOTY5MzEzMDIvcmVzb3VyY2VHcm91cHMvYW1pdGJkaXJzL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvRWFzdEFzaWEtU3BlZWNoVG9UZXh0LVN1YktleSIsInNjb3BlIjoic3BlZWNoc2VydmljZXMiLCJhdWQiOiJ1cm46bXMuc3BlZWNoc2VydmljZXMuZWFzdGFzaWEifQ.x6o7UfRyngeMIwQb6Y8koDDGtZVHUsTPhNCNqNeKZ_I" -H "X-MICROSOFT-OutputFormat: audio-16khz-32kbitrate-mono-mp3" -H "cache-control: no-cache" -H "Origin: https://cn.bing.com" -H "Connection: keep-alive" -H "TE: Trailers" --data "<speak version='1.0' xml:lang='zh-CN'><voice xml:lang='zh-CN' xml:gender='Female' name='zh-CN-HuihuiRUS'><prosody rate='-20.00"%"'>今天干嘛去</prosody></voice></speak>"
生成的是今天干嘛去的语音
2020年3月10日
发现发送特定请求时不会返回语音,比如朝鲜新闻。
估计是受到美国法律限制。