小程序通过云函数调用服务市场接口sentenceASR的时候报错,错误信息如下:
{ "errcode": 9301008, "errmsg": "invalid api info rid = 68dce9e4-5827d1d7-530ccb07 rid: 68dce9e4-5827d1d7-530ccb07" }
请求包如下。其中url是本地录音文件上传到云存储CDN后返回的临时地址链接。
{
"data": {
"Action": "SentenceRecognitionWX",
"EngSerViceType": "16k_zh",
"SourceType": 0,
"UsrAudioKey": "key_${Date.now()}_${Math.random().toString(36).substr(2,9)}",
"VoiceFormat": "wav"
},
"client_msg_id": "id_${Date.now()}_${Math.random().toString(36).substr(2,9)}",
"api": "sentenceASR",
"service": "wxa8386175898e12c9"
}
