Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shaonianzhentan/wake-up
自定义语音唤醒
https://github.com/shaonianzhentan/wake-up
Last synced: 13 days ago
JSON representation
自定义语音唤醒
- Host: GitHub
- URL: https://github.com/shaonianzhentan/wake-up
- Owner: shaonianzhentan
- License: mit
- Created: 2023-07-23T14:27:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-24T14:15:36.000Z (over 1 year ago)
- Last Synced: 2024-10-03T20:41:33.110Z (about 1 month ago)
- Language: Python
- Size: 487 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wake-up
专注语音唤醒### 安装依赖
```bash
sudo apt-get update -y
sudo apt-get install portaudio19-dev python3-pyaudio sox pulseaudio libsox-fmt-all ffmpeg
pip3 install pyaudio
``````bash
git clone https://ghproxy.com/https://github.com/shaonianzhentan/wake-upcd wake-up
pip3 install -r requirements.txt
```### 安装 swig
```bash
cd $HOME
wget https://wzpan-1253537070.cos.ap-guangzhou.myqcloud.com/misc/swig-3.0.10.tar.gz
tar xvf swig-3.0.10.tar.gz
cd swig-3.0.10
sudo apt-get -y update
sudo apt-get install -y libpcre3 libpcre3-dev
./configure --prefix=/usr --without-clisp --without-maximum-compile-warnings
make
sudo make install
sudo install -v -m755 -d /usr/share/doc/swig-3.0.10
sudo cp -v -R Doc/* /usr/share/doc/swig-3.0.10
sudo apt-get install -y libatlas-base-dev
```### 构建 snowboy
```bash
cd $HOME
wget https://wzpan-1253537070.cos.ap-guangzhou.myqcloud.com/wukong/snowboy.tar.bz2
tar -xvjf snowboy.tar.bz2
cd snowboy/swig/Python3
make
cp _snowboydetect.so wake-up的根目录/snowboy/
```### 运行
```bash
python3 wake.py
```## 相关文档
自定义唤醒词
- https://snowboy.hahack.com/核心代码来自于`wukong-robot`
- https://wukong.hahack.com/