# Snowboy Hotword Detection
by [KITT.AI](http://kitt.ai).
[Home Page](https://snowboy.kitt.ai)
[Full Documentation](http://docs.kitt.ai/snowboy) and [FAQ](http://docs.kitt.ai/snowboy#faq)
[Discussion Group](https://groups.google.com/a/kitt.ai/forum/#!forum/snowboy-discussion) (or send email to snowboy-discussion@kitt.ai)
(The discussion group is new since September 2016 as we are getting many messages every day. Please send general questions there. For bugs, use Github issues.)
Version: 1.1.1 (3/24/2017)
## Alexa support
Snowboy now brings hands-free experience to the [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) on Raspberry Pi! Here is how you can use other Snowboy models
**Personal model**
* Create your personal hotword model through our [website](https://snowboy.kitt.ai) or [hotword API](https://snowboy.kitt.ai/api/v1/train/)
* Replace the hotword model in [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) (after installation) with your personal model
```
# Please replace YOUR_PERSONAL_MODEL.pmdl with the personal model you just
# created, and $ALEXA_AVS_SAMPLE_APP_PATH with the actual path where you
# cloned the Alexa AVS sample app repository.
cp YOUR_PERSONAL_MODEL.pmdl $ALEXA_AVS_SAMPLE_APP_PATH/samples/wakeWordAgent/ext/resources/alexa.umdl
```
* Set `APPLY_FRONTEND` to `false` and update `SENSITIVITY` in the [Alexa AVS sample app code](https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/wakeWordAgent/src/KittAiSnowboyWakeWordEngine.cpp) and re-compile
```
# Please replace $ALEXA_AVS_SAMPLE_APP_PATH with the actual path where you
# cloned the Alexa AVS sample app repository.
cd $ALEXA_AVS_SAMPLE_APP_PATH/samples/wakeWordAgent/src/
# Modify KittAiSnowboyWakeWordEngine.cpp and update SENSITIVITY at line 28.
# Modify KittAiSnowboyWakeWordEngine.cpp and set APPLY_FRONTEND to false at
# line 30.
make
```
* Run the wake word agent with engine set to `kitt_ai`!
**Universal model**
* Replace the hotword model in [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) (after installation) with your universal model
```
# Please replace YOUR_UNIVERSAL_MODEL.umdl with the personal model you just
# created, and $ALEXA_AVS_SAMPLE_APP_PATH with the actual path where you
# cloned the Alexa AVS sample app repository.
cp YOUR_UNIVERSAL_MODEL.umdl $ALEXA_AVS_SAMPLE_APP_PATH/samples/wakeWordAgent/ext/resources/alexa.umdl
```
* Update `SENSITIVITY` in the [Alexa AVS sample app code](https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/wakeWordAgent/src/KittAiSnowboyWakeWordEngine.cpp) and re-compile
```
# Please replace $ALEXA_AVS_SAMPLE_APP_PATH with the actual path where you
# cloned the Alexa AVS sample app repository.
cd $ALEXA_AVS_SAMPLE_APP_PATH/samples/wakeWordAgent/src/
# Modify KittAiSnowboyWakeWordEngine.cpp and update SENSITIVITY at line 28.
make
```
* Run the wake word agent with engine set to `kitt_ai`!
## Hotword as a Service
Snowboy now offers **Hotword as a Service** through the ``https://snowboy.kitt.ai/api/v1/train/``
endpoint. Check out the [Full Documentation](http://docs.kitt.ai/snowboy) and example [Python/Bash script](examples/REST_API) (other language contributions are very welcome).
As a quick start, ``POST`` to https://snowboy.kitt.ai/api/v1/train:
{
"name": "a word",
"language": "en",
"age_group": "10_19",
"gender": "F",
"microphone": "mic type",
"token": "<your auth token>",
"voice_samples": [
{wave: "<base64 encoded wave data>"},
{wave: "<base64 encoded wave data>"},
{wave: "<base64 encoded wave data>"}
]
}
then you'll get a trained personal model in return!
## Introduction
Snowboy is a customizable hotword detection engine for you to create your own
hotword like "OK Google" or "Alexa". It is powered by deep neural networks and
has the following properties:
* **highly customizable**: you can freely define your own magic phrase here –
let it be “open sesame”, “garage door open”, or “hello dreamhouse”, you name it.
* **always listening** but protects your privacy: Snowboy does not use Internet
and does *not* stream your voice to the cloud.
* light-weight and **embedded**: it even runs on a Raspberry Pi and consumes
less than 10% CPU on the weakest Pi (single-core 700MHz ARMv6).
* Apache licensed!
Currently Snowboy supports:
* all versions of Raspberry Pi (with Raspbian based on Debian Jessie 8.0)
* 64bit Mac OS X
* 64bit Ubuntu (12.04 and 14.04)
* iOS
* Android
* Pine64 (Debian Jessie 8.5, 3.10.102 BSP2)
* Intel Edison (Ubilinux based on Debian Wheezy 7.8)
* Samsung Artik (built with Fedora 25 for ARMv7)
It ships in the form of a **C++ library** with language-dependent wrappers
generated by SWIG. We welcome wrappers for new languages -- feel free to send a
pull request!
Currently we have built wrappers for:
* Java/Android
* Go (thanks to @brentnd)
* Node (thanks to @evancohen)
* Perl (thanks to @iboguslavsky)
* Python
* iOS/Swift3 (thanks to @grimlockrocks)
* iOS/Object-C (thanks to @patrickjquinn)
If you want support on other hardware/OS, please send your request to
[snowboy@kitt.ai](mailto:snowboy.kitt.ai)
Note: **Snowboy does not support Windows** yet. Please build Snowboy on *nix platforms.
## Pricing for Snowboy models
Hackers: free
* Personal use
* Community support
Business: please contact us at [snowboy@kitt.ai](mailto:snowboy@kitt.ai)
* Personal use
* Commercial license
* Technical support
## Pretrained universal models
We provide pretrained universal models for testing purpose. When you test those
models, bear in mind that they may not be optimized for your specific device or
environment.
Here is the list of the models, and the parameters that you have to use for them:
* **resources/snowboy.umdl**: Universal model for the hotword "Snowboy". Set
SetSensitivity to 0.5 for better performance.
* **resources/alexa.umdl**: Universal model for the hotword "Alexa". Set
SetSensitivity to 0.5, and preferably set ApplyFrontend to true. This model is
depressed.
* **resources/alexa_02092017.umdl**: Universal model for the hotword "Alexa". This
is still work in progress. Set SetSensitivity to 0.15.
## Precompiled node module
Snowboy is available in the form of a native node module precompiled for:
64 bit Ubuntu, MacOS X, and the Raspberry Pi (Raspbian 8.0+). For quick
installation run:
npm install --save snowboy
For sample usage see the `examples/Node` folder. You may have to install
dependencies like `fs`, `wav` or `node-record-lpcm16` depending on which script
you use.
## Precompiled Binaries with Python Demo
* 64 bit Ubuntu [12.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1204-x86_64-1.1.1.tar.bz2)
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.1.1.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.1.1.tar.bz2)
* Raspberry Pi with Raspbian 8.0, all versions
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.1.1.tar.bz2))
* Pine64 (Debian Jessie 8.5 (3.10.102)) ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/pine64-debian-jessie-1.1.1.tar.bz2))
* Intel Edison (Ubilinux based on Debian Wheezy 7.8) ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/edison-ubilinux-1.1.1.tar.bz2))
If you want to compile a version against your own environment/language, read on.
## Dependencies
To run the demo you will likely need the following, depending on which demo you
use and what platform you are working with:
* SoX (audio conversion)
* PortAudio or PyAudio (audio capturing)
* SWIG 3.0.10 or above (compiling Snowboy for different languages/platforms)
* ATLAS or OpenBLAS (matrix computation)
You can also find the exact commands you need to install the dependencies on
Mac OS X, Ubuntu or Raspberry Pi below.
### Mac OS X
`br
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
yiwa-develop伊瓦,家庭语音控制"假机器人" (212个子文件)
chromedriver 15.89MB
bootstrap.min.css 111KB
jquery-weui.min.css 55KB
weui.min.css 50KB
jquery-ui.min.css 29KB
style.css 14KB
gcs20200821.css 10KB
manage.css 592B
manage.css 592B
3603.dic 64B
glyphicons-halflings-regular.eot 20KB
feature_transform 6KB
继续努力.gif 58KB
.gitignore 1KB
index.html 9KB
award.html 6KB
option.html 6KB
score.html 6KB
home.html 5KB
layout.html 5KB
system.html 3KB
week.html 3KB
exchange_records.html 2KB
manage.html 2KB
scores.html 2KB
options.html 2KB
awards.html 2KB
baby.html 2KB
commands.html 853B
table.html 718B
footer.html 528B
refresh.html 484B
header.html 161B
year.html 123B
month.html 123B
all.html 123B
favicon.ico 17KB
组装机器人.jpeg 103KB
乐高玩具.jpeg 73KB
锻炼身体.jpeg 69KB
小米智能组装机器人.jpeg 54KB
吃午饭.jpeg 48KB
洗漱.jpeg 43KB
上学.jpeg 39KB
睡觉.jpeg 38KB
吃晚饭.jpeg 38KB
你真棒.jpeg 31KB
不看电视.jpeg 21KB
写作业.jpeg 18KB
23840c30-7ca4-11ea-905f-186590cbf051.jpeg 16KB
穿衣服.jpeg 16KB
按时起床.jpeg 16KB
绿勾.jpeg 5KB
0fa88c2c-4b3e-11eb-a079-186590cbf051.jpg 600KB
俄罗斯方块.jpg 231KB
4328cf7a-d6cb-11ea-9ba0-186590cbf051.jpg 103KB
15e370b6-d6cc-11ea-accb-186590cbf051.jpg 103KB
9d3e577a-6891-11eb-904d-186590cbf051.jpg 83KB
93a9ac9e-d6cb-11ea-bab1-186590cbf051.jpg 73KB
f4230aa4-d6cb-11ea-9d3d-186590cbf051.jpg 73KB
吃早饭.jpg 63KB
睡午觉.jpg 38KB
洗漱.jpg 34KB
deae8a34-abf8-11ea-8dd4-186590cbf051.jpg 31KB
b2561eba-abf2-11ea-be51-186590cbf051.jpg 31KB
08ecd4fe-6891-11eb-8d34-186590cbf051.jpg 26KB
c09795ac-6897-11eb-9c76-186590cbf051.jpg 25KB
370750e2-6893-11eb-a678-186590cbf051.jpg 25KB
ebd9f6a8-d632-11ea-9ef3-186590cbf051.jpg 18KB
绿勾.jpg 15KB
jquery-2.1.4.js 242KB
city-picker.min.js 135KB
jquery.min.js 94KB
jquery-weui.min.js 82KB
swiper.min.js 76KB
socket.io.js 61KB
zepto.js 55KB
gjs20200831.js 36KB
bootstrap.min.js 34KB
fastclick.js 25KB
utility20200821.js 4KB
clock.js 3KB
LICENSE 18KB
3603.lm 1KB
README.md 15KB
README.md 3KB
mdef 17.47MB
means 24.5MB
mixture_weights 697KB
clear3.mp3 9KB
clear2.mp3 7KB
noisedict 27B
feat.params 110B
yiwa.pmdl 12KB
勤洗手.png 478KB
logo.png 35KB
ui-icons_222222_256x240.png 7KB
ui-icons_ffffff_256x240.png 6KB
ui-bg_gloss-wave_35_f6a828_500x100.png 6KB
ui-icons_228ef1_256x240.png 4KB
共 212 条
- 1
- 2
- 3
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功