我们的产品用的智聆语音评测,也有不少用户遇到这个错误了,机型是ios 18.5,基础库版本3.8.12。麻烦官方看下什么问题。 [图片]
微信小程序IOS端,errCode:-10003errMsg: "file error"console.log('[voice]', asrStatus.value, 'initVoiceRecognition') speechRecognizerManager = plugin.speechRecognizerManager(); // 开始识别 speechRecognizerManager.OnRecognitionStart = (res: any) => { console.log('[voice]', asrStatus.value, '语音识别开始', res) asrStatus.value = 1; } //一句话开始时回调 speechRecognizerManager.OnSentenceBegin = (res: any) => { console.log('[voice]', asrStatus.value, '语音识别开始', res) asrStatus.value = 2; } // 识别结果回调 speechRecognizerManager.OnRecognitionResultChange = (res: any) => { console.log('[voice]', asrStatus.value, '语音识别结果回调', res) } // 一句话结束 speechRecognizerManager.OnSentenceEnd = (res: any) => { console.log('[voice]', asrStatus.value, "一句话结束", res.result.voice_text_str); resultText += res.result.voice_text_str; } // 识别结束回调 speechRecognizerManager.OnRecognitionComplete = (res: any) => { console.log('[voice]', asrStatus.value, '语音识别结束', res) asrStatus.value = 3; isStartVoice.value = false; voiceCheck.value = false; if (slideUp.value) { slideUp.value = false; return; } if (resultText) { emit('send', resultText); } resetVoiceState(); } // 识别错误 speechRecognizerManager.OnError = (res: any) => { console.error('[voice]', asrStatus.value, "语音识别错误:", res); voiceCheck.value = false; showVoiceRecognitionError("语音识别失败,请重试"); resetVoiceState(); } // 录音结束回调 speechRecognizerManager.OnRecorderStop = (res: any) => { console.log('[voice]', asrStatus.value, '录音结束回调', res) } // 监听已录制完指定帧大小回调 speechRecognizerManager.OnFrameRecorded = (res: any) => { // console.log('[voice]', asrStatus.value, '监听已录制完指定帧大小回调', res) } [图片]
08-04同问,这个指标有没有优化空间?
总启动耗时环境初始化如何优化?[图片]
05-12我们团队也遇到了同样的问题,安卓端成功和取消都是进fail回调,且报错都是addPhoneContact:fail cancel。 目前可以判断和基础库版本无关,推测可能和微信有关系。 请官方排查并修复。 另有类似的问题反馈链接: https://developers.weixin.qq.com/community/develop/doc/000660dd744f20121ef1634d966800
wx.addPhoneContact 导入安卓手机成功触发回调失败函数,成功失败返回值都一样https://developers.weixin.qq.com/miniprogram/dev/framework/[图片]
2024-12-04是的,我们的项目也遇到了,等官方提供原因和解决方案 MiniProgramError Cannot read properties of undefined (reading 'replace') TypeError: Cannot read properties of undefined (reading 'replace') at Function.<anonymous> (https://lib/WAServiceMainContext.js:1:667527) at <setTimeout callback function> at https://lib/WAServiceMainContext.js:1:166653 at https://lib/WAServiceMainContext.js:1:154159 at Timeout._onTimeout (<anonymous>:352:55588) at listOnTimeout (node:internal/timers:568:17) at process.processTimers (node:internal/timers:511:7)
小程序基础库3.4.9是有BUG吗?报不能在 undefined 上调用 replace 的错误小程序正常在线上运行,没有修改,我们小程序里有错误监控,一直都正常,没有报JS相关错误。但是2号的时候突然开始报一个 Cannot read properties of undefined (reading 'replace') 的错误,每隔不到半小时我们的告警系统就会通知这个错误,我们排查了自己项目的代码没有发现相关问题(毕竟突然出现的,我们没有发布新版本,上个版本发布已经有一周多了一直没有出现过错误告警),进一步排查发现出现这个错误的时候小程序的 SDK 和没报错前不一样,SDK 变成了3.4.9的时候才开始报的这个错,所以想问下是不是小程序基础库更新了什么导致了这个错误? 下面是我们的监控报的错误信息,在小程序的各个页面都会出现这个错误的告警: 生产环境JS异常告警 15分钟内错误计数达到: 8 告警触发时间: 2024-07-05 08:59:12 访问页面: pages/tabBar/tab5/index?$taroTimestamp=1720140907770 错误信息: MiniProgramError Cannot read properties of undefined (reading 'replace') TypeError: Cannot read properties of undefined (reading 'replace') at Function.<anonymous> (https://lib/WAServiceMainContext.js:1:667527) at <setTimeout callback function> at https://lib/WAServiceMainContext.js:1:166653 at https://lib/WAServiceMainContext.js:1:154159 at Timeout._onTimeout (<anonymous>:352:54813) at listOnTimeout (node:internal/timers:568:17) at process.processTimers (node:internal/timers:511:7) 应用版本: 7.0.66 平台信息: WeChat 8.0.49 操作系统: Android 11 设备品牌: Redmi 设备型号: M2103K19C 设备类型: mobile 设备CPU: MT6833 设备接口: arm64-v8a 设备内存: 3647 小程序SDK: 3.4.9
2024-07-05微信版本:8.0.49 安卓版本:14 此问题仍然可以在上述demo和我们的项目代码复现。请问官方何时修复? 另一位开发者有类似的提问,大致是editor组件没有提供hold-keyboard属性。也请官方一并回复,谢谢。https://developers.weixin.qq.com/community/develop/doc/000ecc966900d0eaaf009310a61000?highLine=hold-keyboard
editor每次点击可输入文本区域都会重新拉起键盘一次https://developers.weixin.qq.com/s/W7uZ3EmU7jbl,如官方片段,在安卓上,如果已获取焦点,弹出键盘,再次点击editor输入框或里面的文字键盘会先收起然后再弹出键盘
2024-06-17