|
|
@@ -434,6 +434,7 @@ Page({ |
|
|
|
}, |
|
|
|
|
|
|
|
initVoiceManager() { |
|
|
|
const that = this |
|
|
|
manager.onRecognize = function (res) { |
|
|
|
console.log("current result", res.result) |
|
|
|
} |
|
|
@@ -441,6 +442,13 @@ Page({ |
|
|
|
manager.onStop = function (res) { |
|
|
|
console.log(res.tempFilePath, 'res'); |
|
|
|
console.log(res.result, 'result'); |
|
|
|
if (res.result) { |
|
|
|
that.setData({ |
|
|
|
message: res.result |
|
|
|
}) |
|
|
|
that.send() |
|
|
|
} else { |
|
|
|
} |
|
|
|
wx.hideLoading() |
|
|
|
} |
|
|
|
|
|
|
|