维羊
维羊
  • 发布:2020-11-12 14:10
  • 更新:2020-11-12 14:32
  • 阅读:843

【报Bug】语音识别出现问题,官方demo中也出现类似问题

分类:HTML5+

产品分类: HTML5+

HBuilderX版本号: 2.9.8

手机系统: Android

手机系统版本号: Android 11

手机厂商: 小米

手机机型: 红米k20 pro

打包方式: 云端

示例代码:
var options = {};  
                var that = this;  
                options.engine = 'baidu';  
                that.value = '';  
                plus.speech.startRecognize(  
                    options,  
                    function(s) {  
                        if (s) {  
                            that.inputValue += s.replace(/[,.?!,。?!…—&$=()-+/*{}[\]]|\s/g, "");  
                            that.$emit('speechEnd', that.inputValue)  
                        } else {  
                            uni.showToast({  
                                icon: 'none',  
                                title: '抱歉,我没听清您说了什么',  
                                duration: 3000  
                            })  
                        }  

                    },  
                    function(e) {  
                        console.log(e)  
                        uni.showToast({  
                            icon: 'none',  
                            title: '抱歉,我没听清您说了什么',  
                            duration: 3000  
                        })  
                    },  
                    setTimeout(() => {  
                        plus.speech.stopRecognize();  
                    }, 10000)  
                );

操作步骤:

运行此代码

预期结果:

正确识别

实际结果:
{  
    "code": 4004,  
    "message": "App name unknown[(-3004)4: Open api request limit reached]"  
}  

bug描述:

语音识别出现问题,官方demo中也出现类似问题

百度官方说是sdk调用出错

2020-11-12 14:10 负责人:无 分享
已邀请:
chenli

chenli

App name unknown是否缺少应用名称配置

  • 维羊 (作者)

    谢谢您, 此问题已解决

    2020-11-12 14:48

  • chenli

    回复 维羊: 排查后确定是什么影响导致的?

    2020-11-12 15:20

  • Kris__

    回复 chenli: App name unknown[(-3004)4: Open api request limit reached] 我的报错是这个 最后发现是需要自定义基座才能调试 或者是需要打包出来就可以了

    2020-11-17 10:00

  • chenli

    回复 Kris__: 新增sdk需要重新打包才生效

    2020-11-17 10:14

  • 再来买一瓶

    回复 Kris__: 我也重新打包了 还是不行 依然是这个错呢

    2020-12-15 20:15

  • 再来买一瓶

    缺少应用名称配置 指的什么意思

    2020-12-15 20:22

该问题目前已经被锁定, 无法添加新回复