We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
下面是我的测试调用代码,怎么都不触发onError和onStop,但是触发了onStart和onRecognize
const plugin = requirePlugin("WechatSI"); const manager = plugin.getRecordRecognitionManager(); Page({ data: { }, onLoad: function (options) { this.initRecord(); }, onReady: function () { }, initRecord: function () { manager.onStart = function (res) { console.log("成功开始录音识别", res) } manager.onStop(function (res) { console.log("onStop"); console.log(res); }) manager.onError(function (err) { console.log(err); }); manager.onRecognize = function (res) { console.log("current result", res.result) } }, startRecord: function (e) { console.log("long"); manager.start(); }, endRecord: function (e) { manager.stop(); console.log("end"); } })
The text was updated successfully, but these errors were encountered:
我这边也是。插件版本是0.3.0
Sorry, something went wrong.
No branches or pull requests
下面是我的测试调用代码,怎么都不触发onError和onStop,但是触发了onStart和onRecognize
The text was updated successfully, but these errors were encountered: