Skip to content

Commit 052db34

Browse files
authored
Merge pull request #372 from Kitt-AI/preparation_1.3.0
v1.3.0
2 parents 7d20d7f + 3c263b6 commit 052db34

33 files changed

+161
-76
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Snowboy.pm
1919
/examples/C++/pa_stable_v190600_20161030.tgz
2020
/examples/C++/portaudio
2121
/examples/C++/demo
22+
/examples/C++/demo2
2223
/examples/Java/Demo.class
2324
/examples/Perl/data/
2425
/examples/iOS/Obj-C/Pods/Pods.xcodeproj/xcuserdata/

README.md

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ by [KITT.AI](http://kitt.ai).
1010

1111
[Commercial application FAQ](README_commercial.md)
1212

13-
Version: 1.2.0 (3/25/2017)
13+
Version: 1.3.0 (2/19/2018)
1414

1515
## Alexa support
1616

1717
Snowboy now brings hands-free experience to the [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) on Raspberry Pi! See more info below regarding the performance and how you can use other hotword models.
1818

1919
**Performance**
2020

21-
The performance of hotword detection usually depends on the actually environment, e.g., is it used with a quality microphone, is it used on the street, in a kitchen, or is there any background noise, etc. So we feel it is best for the users to evaluate it in their real environment. For the evaluation purpose, we have prepared an Android app which can be installed and run out of box: [SnowboyAlexaDemo.apk](https://github.com/Kitt-AI/snowboy/raw/master/resources/alexa/SnowboyAlexaDemo.apk) (please uninstall any previous one first if you installed this app before).
21+
The performance of hotword detection usually depends on the actual environment, e.g., is it used with a quality microphone, is it used on the street, in a kitchen, or is there any background noise, etc. So we feel it is best for the users to evaluate it in their real environment. For the evaluation purpose, we have prepared an Android app which can be installed and run out of box: [SnowboyAlexaDemo.apk](https://github.com/Kitt-AI/snowboy/raw/master/resources/alexa/SnowboyAlexaDemo.apk) (please uninstall any previous versions first if you have installed this app before).
2222

2323
**Personal model**
24+
2425
* Create your personal hotword model through our [website](https://snowboy.kitt.ai) or [hotword API](https://snowboy.kitt.ai/api/v1/train/)
26+
2527
* Replace the hotword model in [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) (after installation) with your personal model
2628

2729
```
@@ -47,6 +49,7 @@ make
4749
* Run the wake word agent with engine set to `kitt_ai`!
4850

4951
**Universal model**
52+
5053
* Replace the hotword model in [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app) (after installation) with your universal model
5154

5255
```
@@ -114,14 +117,9 @@ Currently Snowboy supports (look into the [lib](lib) folder):
114117

115118
* all versions of Raspberry Pi (with Raspbian based on Debian Jessie 8.0)
116119
* 64bit Mac OS X
117-
* 64bit Ubuntu (12.04 and 14.04)
120+
* 64bit Ubuntu 14.04
118121
* iOS
119122
* Android
120-
* Pine64 (Debian Jessie 8.5, 3.10.102 BSP2)
121-
* Nvidia Jetson TX1 (use above Pine64 package)
122-
* Nvidia Jetson TX2 (use above Pine64 package)
123-
* Intel Edison (Ubilinux based on Debian Wheezy 7.8)
124-
* Samsung Artik (built with Fedora 25 for ARMv7)
125123
* ARM64 (aarch64, Ubuntu 16.04)
126124

127125
It ships in the form of a **C++ library** with language-dependent wrappers
@@ -130,11 +128,12 @@ pull request!
130128

131129
Currently we have built wrappers for:
132130

131+
* C/C++
133132
* Java/Android
134133
* Go (thanks to @brentnd and @deadprogram)
135134
* Node (thanks to @evancohen and @nekuz0r)
136135
* Perl (thanks to @iboguslavsky)
137-
* Python
136+
* Python2/Python3
138137
* iOS/Swift3 (thanks to @grimlockrocks)
139138
* iOS/Object-C (thanks to @patrickjquinn)
140139

@@ -164,18 +163,10 @@ environment.
164163

165164
Here is the list of the models, and the parameters that you have to use for them:
166165

167-
* **resources/snowboy.umdl**: Universal model for the hotword "Snowboy". Set
168-
SetSensitivity to 0.5 for better performance.
169-
* **resources/alexa.umdl**: Universal model for the hotword "Alexa". Set
170-
SetSensitivity to 0.5, and preferably set ApplyFrontend (only works on Raspberry
171-
Pi) to true. This model is depressed.
172-
* **resources/alexa/alexa_02092017.umdl**: Universal model for the hotword
173-
"Alexa". This is still work in progress. Set SetSensitivity to 0.15.
174-
* **resources/alexa/alexa-avs-sample-app/alexa.umdl**: Universal model for the
175-
hotword "Alexa" optimized for [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app).
176-
Set SetSensitivity to 0.6, and set ApplyFrontend (only works on Raspberry Pi)
177-
to true. This is so far the best "Alexa" model we released publicly, when
178-
ApplyFrontend is set to true.
166+
* **resources/alexa/alexa-avs-sample-app/alexa.umdl**: Universal model for the hotword "Alexa" optimized for [Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app). Set SetSensitivity to 0.6, and set ApplyFrontend to true. This is so far the best "Alexa" model we released publicly, when ApplyFrontend is set to true.
167+
* **resources/models/snowboy.umdl**: Universal model for the hotword "Snowboy". Set SetSensitivity to 0.5 and ApplyFrontend to false.
168+
* **resources/models/jarvis.umdl**: Universal model for the hotword "Jarvis" (https://snowboy.kitt.ai/hotword/29). It has two different models for the hotword Jarvis, so you have to use two sensitivites. Set sensitivities to "0.8,0.80" and ApplyFrontend to true.
169+
* **resources/models/smart_mirror.umdl**: Universal model for the hotword "Smart Mirror" (https://snowboy.kitt.ai/hotword/47). Set sensitivity to Sensitivity to 0.5, and ApplyFrontend to false.
179170

180171
## Precompiled node module
181172

@@ -190,13 +181,10 @@ dependencies like `fs`, `wav` or `node-record-lpcm16` depending on which script
190181
you use.
191182

192183
## Precompiled Binaries with Python Demo
193-
* 64 bit Ubuntu [12.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1204-x86_64-1.2.0.tar.bz2)
194-
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.2.0.tar.bz2)
195-
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.2.0.tar.bz2)
184+
* 64 bit Ubuntu [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.3.0.tar.bz2)
185+
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.3.0.tar.bz2)
196186
* Raspberry Pi with Raspbian 8.0, all versions
197-
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.2.0.tar.bz2))
198-
* Pine64 (Debian Jessie 8.5 (3.10.102)), Nvidia Jetson TX1 and Nvidia Jetson TX2 ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/pine64-debian-jessie-1.2.0.tar.bz2))
199-
* Intel Edison (Ubilinux based on Debian Wheezy 7.8) ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/edison-ubilinux-1.2.0.tar.bz2))
187+
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.3.0.tar.bz2))
200188

201189
If you want to compile a version against your own environment/language, read on.
202190

@@ -386,9 +374,14 @@ See [Full Documentation](http://docs.kitt.ai/snowboy).
386374

387375
## Change Log
388376

389-
**1/4/2018**
377+
**v1.3.0, 2/19/2018**
390378

391-
* Added `resources/smart_mirror.umdl`. This is trained with voices from https://snowboy.kitt.ai/hotword/47. We suspect that it'll work well with male voices as most of our developers are male.
379+
* Added Frontend processing for all platforms
380+
* Added `resources/models/smart_mirror.umdl` for https://snowboy.kitt.ai/hotword/47
381+
* Added `resources/models/jarvis.umdl` for https://snowboy.kitt.ai/hotword/29
382+
* Added README for Chinese
383+
* Cleaned up the supported platforms
384+
* Re-structured the model path
392385

393386
**v1.2.0, 3/25/2017**
394387

README_ZH_CN.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(因为我们每天都会收到很多消息,从2016年9月开始建立了讨论组。请在这里发送一般性的讨论。关于错误,请使用Github问题标签。)
1212

13-
版本:1.2.0(3/25/2017
13+
版本:1.3.0(2/19/2018
1414

1515
## Alexa支持
1616

@@ -113,25 +113,21 @@ Snowboy是一款可定制的唤醒词检测引擎,可为您创建像 "OK Googl
113113

114114
* 所有版本的Raspberry Pi(Raspbian基于Debian Jessie 8.0)
115115
* 64位Mac OS X
116-
* 64位Ubuntu(12.04和14.04)
116+
* 64位Ubuntu 14.04
117117
* iOS
118118
* Android
119-
* Pine64(Debian Jessie 8.5,3.10.102 BSP2)
120-
* Nvidia Jetson TX1(使用上面的Pine64包)
121-
* Nvidia Jetson TX2(使用上面的Pine64包)
122-
* 英特尔Edison(Ubilinux基于Debian Wheezy 7.8)
123-
* 三星Artik(搭载Fedora 25为ARMv7)
124119
* ARM64(aarch64,Ubuntu 16.04)
125120

126121
Snowboy底层库由C++写成,通过swig被封装成能在多种操作系统和语言上使用的软件库。我们欢迎新语言的封装,请随时发送你们的Pull Request!
127122

128123
目前我们已经现实封装的有:
129124

125+
* C/C++
130126
* Java / Android
131127
* Go(thanks to @brentnd and @deadprogram
132128
* Node(thanks to @evancohen和@ nekuz0r)
133129
* Perl(thanks to @iboguslavsky
134-
* Python
130+
* Python2/Python3
135131
* iOS / Swift3(thanks to @grimlockrocks
136132
* iOS / Object-C(thanks to @patrickjquinn
137133

@@ -158,13 +154,10 @@ Snowboy底层库由C++写成,通过swig被封装成能在多种操作系统和
158154

159155
以下是模型列表和您必须使用的参数:
160156

161-
* resources/ snowboy.umdl:唤醒词为“snowboy”的通用模型。将`SetSensitivity`设置为`0.5`以获得更好的性能。
162-
* resources/ alexa.umdl:唤醒词为“Alexa”的通用模型。将`SetSensitivity`设置为`0.5`,最好将`ApplyFrontend`
163-
(仅适用于Raspberry Pi)设置为`true`。这个模型已经不建议使用了。
164-
* resources/ alexa / alexa_02092017.umdl:唤醒词为“Alexa”的通用模型。这个仍然在优化中。
165-
`SetSensitivity`设置为`0.15`
166-
* resources/ alexa / alexa-avs-sample-app/alexa.umdl:这个是为[Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app)
167-
优化过的唤醒词为“Alexa”的通用模型,将`SetSensitivity`设置为`0.6`,并将`ApplyFrontend`(仅适用于Raspberry Pi)设置为true。当`ApplyFrontend`设置为`true`时,这是迄今为止我们公开发布的最好的“Alexa”的模型。
157+
* **resources/alexa/alexa-avs-sample-app/alexa.umdl**:这个是为[Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app)优化过的唤醒词为“Alexa”的通用模型,将`SetSensitivity`设置为`0.6`,并将`ApplyFrontend`设置为true。当`ApplyFrontend`设置为`true`时,这是迄今为止我们公开发布的最好的“Alexa”的模型。
158+
* **resources/models/snowboy.umdl**:唤醒词为“snowboy”的通用模型。将`SetSensitivity`设置为`0.5``ApplyFrontend`设置为`false`
159+
* **resources/models/jarvis.umdl**: 唤醒词为“Jarvis” (https://snowboy.kitt.ai/hotword/29)的通用模型,其中包含了对应于“Jarvis”的两个唤醒词模型,所以需要设置两个`sensitivity`。将`SetSensitivity`设置为`0.8,0.8`,`ApplyFrontend`设置为`true`。
160+
* **resources/models/smart_mirror.umdl**: 唤醒词为“Smart Mirror” (https://snowboy.kitt.ai/hotword/47)的通用模型。将`SetSensitivity`设置为`0.5`,`ApplyFrontend`设置为`false`。
168161

169162
## 预编译node模块
170163

@@ -176,10 +169,10 @@ Snowboy为一下平台编译了node模块:64位Ubuntu,MacOS X和Raspberry Pi
176169

177170
## 预编译Python Demo的二进制文件
178171
* 64 bit Ubuntu [12.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1204-x86_64-1.2.0.tar.bz2)
179-
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.2.0.tar.bz2)
180-
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.2.0.tar.bz2)
172+
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.3.0.tar.bz2)
173+
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.3.0.tar.bz2)
181174
* Raspberry Pi with Raspbian 8.0, all versions
182-
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.2.0.tar.bz2))
175+
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.3.0.tar.bz2))
183176
* Pine64 (Debian Jessie 8.5 (3.10.102)), Nvidia Jetson TX1 and Nvidia Jetson TX2 ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/pine64-debian-jessie-1.2.0.tar.bz2))
184177
* Intel Edison (Ubilinux based on Debian Wheezy 7.8) ([download](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/edison-ubilinux-1.2.0.tar.bz2))
185178

@@ -367,6 +360,15 @@ Perl示例包括使用KITT.AI RESTful API训练个人唤醒词,在检测到唤
367360

368361
## 更改日志
369362

363+
**v1.3.0, 2/19/2018**
364+
365+
* 添加前端处理到所有平台
366+
* 添加`resources/models/smart_mirror.umdl`https://snowboy.kitt.ai/hotword/47
367+
* 添加`resources/models/jarvis.umdl`https://snowboy.kitt.ai/hotword/29
368+
* 添加中文文档
369+
* 清理支持的平台
370+
* 重新定义了模型路径
371+
370372
**v1.2.0, 3/25/2017**
371373

372374
*[Alexa AVS sample app](https://github.com/alexa/alexa-avs-sample-app)添加更好的Alexa模型

examples/C++/demo.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,11 @@ int main(int argc, char* argv[]) {
200200
// Parameter section.
201201
// If you have multiple hotword models (e.g., 2), you should set
202202
// <model_filename> and <sensitivity_str> as follows:
203-
// model_filename = "resources/snowboy.umdl,resources/alexa.pmdl";
204-
// sensitivity_str = "0.4,0.4";
203+
// model_filename =
204+
// "resources/models/snowboy.umdl,resources/models/smart_mirror.umdl";
205+
// sensitivity_str = "0.5,0.5";
205206
std::string resource_filename = "resources/common.res";
206-
std::string model_filename = "resources/snowboy.umdl";
207+
std::string model_filename = "resources/models/snowboy.umdl";
207208
std::string sensitivity_str = "0.5";
208209
float audio_gain = 1;
209210

examples/C++/demo2.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "portaudio.h"
44

55
#define resource_filename "resources/common.res"
6-
#define model_filename "resources/snowboy.umdl"
6+
#define model_filename "resources/models/snowboy.umdl"
77
#define sensitivity_str "0.5"
88

99
struct wavHeader { //44 byte HEADER only

examples/C/demo.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,11 @@ int main(int argc, char* argv[]) {
183183
// Parameter section.
184184
// If you have multiple hotword models (e.g., 2), you should set
185185
// <model_filename> and <sensitivity_str> as follows:
186-
// model_filename = "resources/snowboy.umdl,resources/alexa.pmdl";
187-
// sensitivity_str = "0.4,0.4";
186+
// model_filename =
187+
// "resources/models/snowboy.umdl,resources/models/smart_mirror.umdl";
188+
// sensitivity_str = "0.5,0.5";
188189
const char resource_filename[] = "resources/common.res";
189-
const char model_filename[] = "resources/snowboy.umdl";
190+
const char model_filename[] = "resources/models/snowboy.umdl";
190191
const char sensitivity_str[] = "0.5";
191192
float audio_gain = 1;
192193

examples/Go/detect/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ go build -o snowboy main.go
2222

2323
### Examples
2424
Cmd:
25-
`./snowboy ../../../resources/snowboy.umdl ../../../resources/snowboy.wav`
25+
`./snowboy ../../../resources/models/snowboy.umdl ../../../resources/snowboy.wav`
2626

2727
Output:
2828
```
@@ -37,4 +37,4 @@ Output:
3737
```
3838
Snowboy detecting keyword in ../../resources/snowboy.wav
3939
Snowboy detected nothing
40-
```
40+
```

examples/Go/listen/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ go build -o listen main.go
2323

2424
### Examples
2525
Cmd:
26-
`./listen ../../../resources/common.res ../../../resources/snowboy.umdl`
26+
`./listen ../../../resources/common.res ../../../resources/models/snowboy.umdl`
2727

2828
Output:
2929
```

examples/Java/Demo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static void main(String[] args) {
2121

2222
// Sets up Snowboy.
2323
SnowboyDetect detector = new SnowboyDetect("resources/common.res",
24-
"resources/snowboy.umdl");
24+
"resources/models/snowboy.umdl");
2525
detector.SetSensitivity("0.5");
2626
detector.SetAudioGain(1);
2727

examples/Node/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Models = require('../../').Models;
66
const models = new Models();
77

88
models.add({
9-
file: 'resources/snowboy.umdl',
9+
file: 'resources/models/snowboy.umdl',
1010
sensitivity: '0.5',
1111
hotwords : 'snowboy'
1212
});

examples/Node/microphone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Models = require('../../').Models;
55
const models = new Models();
66

77
models.add({
8-
file: 'resources/snowboy.umdl',
8+
file: 'resources/models/snowboy.umdl',
99
sensitivity: '0.5',
1010
hotwords : 'snowboy'
1111
});

examples/Perl/snowboy_googlevoice.pl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# This script first uses Snowboy to wake up, then collects audio and sends to
44
# Google Speech API for further recognition. It works with both personal and
55
# universal models. By default, it uses the Snowboy universal model at
6-
# resources/snowboy.umdl, you can change it to other universal models, or your
7-
# own personal models. You also have to provide your Google API key in order to
8-
# use it.
6+
# resources/models/snowboy.umdl, you can change it to other universal models, or
7+
# your own personal models. You also have to provide your Google API key in
8+
# order to use it.
99

1010
use Snowboy;
1111

@@ -23,16 +23,16 @@
2323
This script first uses Snowboy to wake up, then collects audio and sends to
2424
Google Speech API for further recognition. It works with both personal and
2525
universal models. By default, it uses the Snowboy universal model at
26-
resources/snowboy.umdl, you can change it to other universal models, or your own
27-
personal models. You also have to provide your Google API key in order to use
28-
it.
26+
resources/models/snowboy.umdl, you can change it to other universal models, or
27+
your own personal models. You also have to provide your Google API key in order
28+
to use it.
2929
3030
Note: Google is now moving to Google Cloud Speech API, so we will have to update
3131
the API query later.
3232
3333
Usage: ./snowboy_googlevoice.pl <Google_API_Key> [Hotword_Model]
3434
e.g.: ./snowboy_googlevoice.pl \
35-
abcdefghijklmnopqrstuvwxyzABC0123456789 resources/snowboy.umdl
35+
abcdefghijklmnopqrstuvwxyzABC0123456789 resources/models/snowboy.umdl
3636
3737
Allowed options:
3838
--language : Language for speech recognizer. (string, default="en")
@@ -48,9 +48,9 @@
4848

4949
# Gets parameters.
5050
my $api_key = shift @ARGV;
51-
my $model = shift @ARGV || 'resources/snowboy.umdl';
51+
my $model = shift @ARGV || 'resources/models/snowboy.umdl';
5252

53-
if ($model eq 'resources/snowboy.umdl') {
53+
if ($model eq 'resources/models/snowboy.umdl') {
5454
$hotword = "Snowboy";
5555
} else {
5656
$hotword = "your hotword";

examples/Perl/snowboy_unit_test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
close WAV;
1313

1414
$sb = new Snowboy::SnowboyDetect('resources/common.res',
15-
'resources/snowboy.umdl');
15+
'resources/models/snowboy.umdl');
1616

1717
$sb->SetSensitivity ("0.5");
1818
$sb->SetAudioGain (1);

examples/Python/demo3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
# Demo code for detecting hotword in a .wav file
66
# Example Usage:
7-
# $ python demo3.py resources/snowboy.wav resources/snowboy.umdl
7+
# $ python demo3.py resources/snowboy.wav resources/models/snowboy.umdl
88
# Should print:
99
# Hotword Detected!
1010
#
11-
# $ python demo3.py resources/ding.wav resources/snowboy.umdl
11+
# $ python demo3.py resources/ding.wav resources/models/snowboy.umdl
1212
# Should print:
1313
# Hotword Not Detected!
1414

examples/Python3/demo3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
# Demo code for detecting hotword in a .wav file
66
# Example Usage:
7-
# $ python demo3.py resources/snowboy.wav resources/snowboy.umdl
7+
# $ python demo3.py resources/snowboy.wav resources/models/snowboy.umdl
88
# Should print:
99
# Hotword Detected!
1010
#
11-
# $ python demo3.py resources/ding.wav resources/snowboy.umdl
11+
# $ python demo3.py resources/ding.wav resources/models/snowboy.umdl
1212
# Should print:
1313
# Hotword Not Detected!
1414

0 commit comments

Comments
 (0)