javascript - js-sdk通过serverId下载语音文件异常情况
伊谢尔伦
伊谢尔伦 2017-04-11 11:53:59
0
0
514
  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.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!