唤醒词 唤醒词模型生成 snowboy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhaohe 15ee51d2b2 update 3 years ago
markdown.assets/README.assets update 3 years ago
README.md update 3 years ago

README.md

README

[toc]

1.虚拟机使用说明

下载地址:
wget ftp://zftpuser:zftpzwsd@192.168.1.2/zwsd/vmware_image/snowboy_pyml_generator_ubuntu1604.7z

系统配置:
	用户名:zwsd
	密码    :zwsd
	
功能:
	构造snowboy唤醒模型

2.如何构建模型

1.打开虚拟机,并打开终端

2.切换目录到/home/zwsd/Desktop/snowboy

cd /home/zwsd/Desktop/snowboy

3.依次执行下面指令

virtualenv -p python2 venv/snowboy
source venv/snowboy/bin/activate
cd examples/Python

4.将录音文件拷贝到当前目录下

image-20220330104544094

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

4.常见问题

1.如果感觉MIC电脑MIC有问题,录不到音.

原因一:ubuntu系统配置问题
1. 打开音频配置。
2. 注意mic是否被设置静音了。

image-20220330110034442

image-20220330110156442

原因二:虚拟机配置问题
查看虚拟机右下角状态栏中的小喇叭是否被点亮。

image-20220330110301977

原因三: 查看windows MIC 是否正常工作