bug
This commit is contained in:
@@ -55,13 +55,13 @@ export default {
|
||||
this.isStart = true
|
||||
},
|
||||
end() {
|
||||
this.isStart = false
|
||||
wx.stopRecord({
|
||||
success: (res)=> {
|
||||
wx.translateVoice({
|
||||
localId: res.localId, // 需要识别的音频的本地Id,由录音相关接口获得,音频时长不能超过60秒
|
||||
isShowProgressTips: 1, // 默认为1,显示进度提示
|
||||
success: (e)=> {
|
||||
this.isStart = false
|
||||
this.text = this.text + e.translateResult // 语音识别的结果
|
||||
this.confirm()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user