在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.