commit b83972fd7f031170307dbd1b04c563f1a48ef890 Author: zhaohe <1013909206@qq.com> Date: Wed Mar 30 11:09:01 2022 +0800 update diff --git a/README.md b/README.md new file mode 100644 index 0000000..9b7b96a --- /dev/null +++ b/README.md @@ -0,0 +1,104 @@ +# README + +## 1.虚拟机使用说明 + +``` +账号:zwsd +密码:zwsd +功能:构造snowboy唤醒模型 +``` + +## 2.如何构建模型 + +1.打开虚拟机,并打开终端 + +2.切换目录到/home/zwsd/Desktop/snowboy + +```bash +cd /home/zwsd/Desktop/snowboy +``` + +3.依次执行下面指令 + +```bash +virtualenv -p python2 venv/snowboy +source venv/snowboy/bin/activate +cd examples/Python +``` + +4.将录音文件拷贝到当前目录下 + +![image-20220330104544094](markdown.assets/README.assets/image-20220330104544094.png) + +``` +Tip: + ssh sftp 均已打开,通过FileZilla直接传输文件即可 +``` + +5.执行下面指令生成模型 + +```` +python generate_pmdl.py -r1=record1.wav -r2=record2.wav -r3=record3.wav -lang=cn -n=hotword.pmdl + +``` + 执行结束后会在当前目录下产生hotword.pmdl +``` +```` + +## 3.如何测试模型 + +``` +cd /home/zwsd/Desktop/snowboy/examples/C +make +./demo +=========================日志说明===================== +-2 detected! +-2 detected! +-2 detected! +-2 detected! 静默语音 +0 detected! 有声音 +0 detected! +0 detected! +0 detected! +1 detected! 识别到唤醒词 +-2 detected! +-2 detected! +-2 detected! +-2 detected! +``` + +通过修改下面代码决定使用哪个模型。 + +![image-20220330105913510](markdown.assets/README.assets/image-20220330105913510.png) + + + +## 4.常见问题 + +1.如果感觉MIC电脑MIC有问题,录不到音. + +``` +原因一:ubuntu系统配置问题 +1. 打开音频配置。 +2. 注意mic是否被设置静音了。 +``` + +![image-20220330110034442](markdown.assets/README.assets/image-20220330110034442.png) + +![image-20220330110156442](markdown.assets/README.assets/image-20220330110156442.png) + + + +``` +原因二:虚拟机配置问题 +查看虚拟机右下角状态栏中的小喇叭是否被点亮。 +``` + +![image-20220330110301977](markdown.assets/README.assets/image-20220330110301977.png) + + + +``` +原因三: 查看windows MIC 是否正常工作 +``` + diff --git a/markdown.assets/README.assets/image-20220330104544094.png b/markdown.assets/README.assets/image-20220330104544094.png new file mode 100644 index 0000000..83c1b3e Binary files /dev/null and b/markdown.assets/README.assets/image-20220330104544094.png differ diff --git a/markdown.assets/README.assets/image-20220330105913510.png b/markdown.assets/README.assets/image-20220330105913510.png new file mode 100644 index 0000000..0190c9f Binary files /dev/null and b/markdown.assets/README.assets/image-20220330105913510.png differ diff --git a/markdown.assets/README.assets/image-20220330110034442.png b/markdown.assets/README.assets/image-20220330110034442.png new file mode 100644 index 0000000..b416e97 Binary files /dev/null and b/markdown.assets/README.assets/image-20220330110034442.png differ diff --git a/markdown.assets/README.assets/image-20220330110156442.png b/markdown.assets/README.assets/image-20220330110156442.png new file mode 100644 index 0000000..2dccb29 Binary files /dev/null and b/markdown.assets/README.assets/image-20220330110156442.png differ diff --git a/markdown.assets/README.assets/image-20220330110301977.png b/markdown.assets/README.assets/image-20220330110301977.png new file mode 100644 index 0000000..abc0123 Binary files /dev/null and b/markdown.assets/README.assets/image-20220330110301977.png differ