我尝试使用此处记录的Microsoft Speech API:https://www.microsoft.com/cognitive-services/en-us/Speech-api/documentation/GetStarted/GetStarted-cURL
我有一把钥匙,我认证很好。当我尝试使用该服务时,我收到此错误:
Parameter 'requestid' value '1234844532343434' is invalid.
我尝试过不同类型的数字和字符串而没有运气。 Azure在requestid中寻找什么格式?
我的测试脚本如下所示:
token="..."
requestid="1234844532343434"
curl -v -X POST "https://speech.platform.bing.com/recognize?scenarios=smd&appid=D4D52672-91D7-4C74-8AD8-42B1D98141A5&locale=your_locale&device.os=your_device_os&version=3.0&format=json&instanceid=your_instance_id&requestid=${requestid}" -H "Authorization: Bearer ${token}" -H 'Content-type: audio/wav; codec="audio/pcm"; samplerate=16000' --data-binary @man1_nb.wav