你好,请问解决了吗
调用微信openai 语音识别文字,解析不出来https://developers.weixin.qq.com/doc/offiaccount/Intelligent_Interface/AI_Open_API.html https://api.weixin.qq.com/cgi-bin/media/voice/queryrecoresultfortext access_token=76_VEXzBBAlEyv09Nd2hDKFcy7GogpTu27wvHlv6ZW3hvIFycClRsLXScn_AQu9lEoJwg6sHHyjbQGxCvY7fI729TNb6owe-65M-0ZDG8uJDedtMoB-zi056sAw3iICNBfAEAXIW 【请求地址】: https://api.weixin.qq.com/cgi-bin/media/voice/queryrecoresultfortext?access_token=76_Wjzk72hPbhCWbtDAcQVF6F4TUMtA2x3GjQu_vWsQ4oj9SU_G22ov61jibcJEJyyHoRmVkLajUmEu5t5a7tVhXC_fY6EfF7ej3ZkUM_CZmk7apEUY94IfgkNC5yUOIRcAJAWQZ 【请求参数】:voice_id=1749033908640464898&lang=zh_CN 【响应数据】:{"result":"","is_end":true}
03-29请问解决了吗
语音转文字怎么实现const recorderManager = wx.getRecorderManager() Page({ onLoad: function (options) { this.initVido() }, initVido() { recorderManager.onPause(() => { console.log('recorder pause') }) recorderManager.onStop((res) => { console.log('recorder stop', res) const { tempFilePath } = res var audio = wx.createInnerAudioContext(); audio.src = tempFilePath; audio.autoplay = true; }) recorderManager.onFrameRecorded((res) => { const { frameBuffer } = res console.log('frameBuffer.byteLength', frameBuffer.byteLength) }) }, startRecord() { const options = { format: 'mp3', duration: 10000 } recorderManager.start(options) }, stopRecord() { recorderManager.stop() } }) 我想问一下,就是录音了,然后怎么调用以下微信接口获取到语音识别结果? 接口文档——获取语音识别结果 接口调用请求说明 http请求方式: POST http://api.weixin.qq.com/cgi-bin/media/voice/queryrecoresultfortext?access_token=ACCESS_TOKEN&voice_id=xxxxxx&lang=zh_CN access_token 是 接口调用凭证 voice_id 是 语音唯一标识 lang 否 语言,zh_CN 或 en_US,默认中文 其中voice_id和access_token是怎么拿到的?
03-29你好,请问你现在调用不会报错吗?我调用这个API报系统错误
语音识别queryrecoresultfortext的lang参数设置无效,始终返回中文http://api.weixin.qq.com/cgi-bin/media/voice/queryrecoresultfortext?access_token=ACCESS_TOKEN&voice_id=xxxxxx&lang=en_US 调用语音识别接口,使用英文接口,始终返回中文
03-29