Home  >  Q&A  >  body text

javascript - js-sdk通过serverId下载语音文件异常情况

  1. 在downloadVoice 中的serverId只要不为空就会执行成功callback

 var localId;
    wx.downloadVoice({  
       serverId:'123',
       isShowProgressTips:1,
       success:function(res){
              localId = res.localId;
              console.log('下载成功:' + localId);
              wx.translateVoice({
                  localId:localId,
                  isShowProgressTips:1,
                  success:function(res){
                      console.log('识别成功:' + res.translateResult);
                  }
              });
       }
    });     

3.

伊谢尔伦伊谢尔伦2767 days ago503

reply all(0)I'll reply

No reply
  • Cancelreply