snowboy 离线唤醒报错; Most likely you provided the wrong model.
lizeyou0203 opened this issue · comments
确认已寻找过答案
我已确认在 Github issue 页、常见问题页、文档 中都查找过,没有找到类似问题和资料。我也没有 google / bing/ 百度 / duckduckgo 到相关解答。
安装方式
手动安装
操作系统
树莓派4B的Raspbian系统
离线唤醒相关
如果是离线唤醒相关的问题,是否已确保 arecord temp.wav
、aplay temp.wav
(Linux) 或 rec temp.wav
、play temp.wav
(Mac)已正常工作?(注意要求不能带任何其他参数)如果不能,请先配置好麦克风和音响再尝试。
—— 我已确保录音、播放都正常工作才尝试 wukong-robot 。
问题描述
具体说明下问题
使用的snowboy 离线唤醒,因为wukong_pi.pmdl模型的识别率不高.所以想使用自定义的模型.
snowboy官方不知道是什么原因打不开,不能在官网训练.
因为没有图形界面,所以也无法在https://snowboy.hahack.com/上面直接录音生成语音文件训练.
只能使用curl -X POST -F modelName=xiaoduxiaodu -F example1=xiaodu1.wav -F example2=xiaodu2.wav -F example3=xiaodu3.wav --output xiaodu.pmdl https://snowboy.hahack.com/generate 这个命令来生成模型,然而xiaodu.pmdl放置到~/.wukong并修改修改配置为xiaodu.pmdl后,运行wukong-robot直接报错如下:
ERROR (ClassifyModels():pipeline-detect.cc:816) PipelineDetect: undefined model type detected. Most likely you provided the wrong model.
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR (ClassifyModels():pipeline-detect.cc:816) PipelineDetect: undefined model type detected. Most likely you provided the wrong model.
[stack trace: ]
Backtrace has not been implemented yet.
Aborted
不知道要如何整了....
已解决