Skip to content

Commit

Permalink
Preparing for v1.1.0 [publish binary]
Browse files Browse the repository at this point in the history
  • Loading branch information
chenguoguo committed Sep 21, 2016
1 parent 6d57665 commit 1842346
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ os:

env:
global:
- secure: i1H9nLTmwznGjZNrX2dYf8NmeMnHQRqZPErXenMe67zhI1NWZNd5Q4dkZKKMUUmZZa/aLPT9biYzeVsoxyX2zbbHl8cruVLqh67FwKdedf/m4quzn1U5MRznPFdzEb9LzyU6IKGJQYLDzCTlBpoZe8LQEIxwx/Fn7H5DxPXIQN2+YP4euDNdSdjr3PB3IaOf719gwmTbLnxpdUr2/u7ZUTu+0Q3AdG4NQ0oDaSYCbYsMET1zxz+nLDh0nZdq4+26X5FlFa4r5QEzFZMxxvK+vd7npHnrdhUQo1JFUZuO0MWhBpZfmJpSmsYF5leYWHBhC6VOfCRI8Ej15CNmBk9U/tmaF8H9Ho6PjYplIaAUQ9QhL3Y1lXSclBHQF+WEumKEgDhy8ZVdvpilIOMvj0/mCtD9XKNZFNcc0223FMYDf/polzjjssMIH6gltKR9VrDzmSbq5M5xkFKOcpH7C6uu754mLSUHt/+xNATBUsKQsNLqUuuj4WPjv6KB/p3/ruGk0xwCR6W+UY+Ji7BZunToZjF2R53DlWVL965dK40H3hKVOu4IXrjjNytHFORmwrgTfjLcq5i+vnzN6yThBtG+dg7Ek6cHc7MQQbngx2aqyW5P3ljnr8EbWdEB1nSOlImKX1Tu8Ln4+BMpLm5dmvMyI3h9IGWKS09nvOE4C4dFRM8=
- secure: PWkLgkYW8UuuuUUbhh7ytQu8Qe92DfccPm0f2dlJP+9A7TuPyfusnA5/SrCeNbMF+QDbwMXuxLmbDwvhiFZPXBI0KDl5kPfZbPPF9tUrPR7n2ZU7gFt+f9BeCCJsjkOxBw6j60T1T+bkqH0Z4Yj8IaB9vtfTVao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aq86KrFzvSKS/evW/vj7Sq2rNbOCtnIy/rvIKAXU0bbR/1imuEiiMhKdiZku+jRfZZmpjKHoydba9SsHpuNGnR/sH40AIHv7Lv6q+z3mEI+X1YaOVAAlLYWExuHLLbWYjng2gEBIHwmuU=
- secure: RNZDzRXBhS98DMpa0QIKQjL8Nl7Pbo6cYtPyaMjEgF2nv+W+gwhcyDDRUE4psJm26Qkz3AZNfLx/kGKPhhAjBpuGFreCbAFy3uDfbDdcn2K68E+yRSdBAoTIKlxVPpQR11hfPHiAs+3s4BIwLGnuwJSK3JMisboji4ceaxVQpdo0ZcJnNKykN2zabUl+8BW8SYQ8cYp/DLg+wSeqq7eplyYD7zoT/GGnSNylkrRsJxB5zlrRQC/ngUfK7AuxhkfQ14dsdWkkrx0RyVFul5VAc85qAbrtJvLZs2Cu/J3ohNzcRZG7m8+U4diHuIlBFx0ezL3hVBfXkOf74dP8+OnL3rAr/1n+dczl5/5mQqlSsy8UAtUtfdAtd+wRNRy5d+er1YuJBWOGs2SXInjNViEY1Phgs6bY/Lu3wiIxDJH0TORan6ZVSje2/vi7aegRoiqHNrs4m2JuQDCPXu53HKh22+nWgRLLXFT2oBN3FdCz3xj04t+LyT+P5uq9q0jXxKc1nlNpvF3nDzhIuJKcfgBRNm9Wt1vz04xzSRgZEFGMTRWkYTdV+0ZVeqEQjEPo4fRNJ6PT1Tem8VqIoHEKGivGkwiAZ6FhQ/TNkVD7tv5Vhq7eK3ZPXDRakuBsLJ5Nc9QnLCpoEqbuIYqjr8ODKV2HSjS16VaGPbvtYPWzhGKU9C4=
matrix:
- NODE_VERSION="4.0.0"
- NODE_VERSION="5.0.0"
Expand Down Expand Up @@ -84,4 +84,4 @@ script:

after_success:
# if success then query and display all published binaries
- node-pre-gyp info
- node-pre-gyp info
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ by [KITT.AI](http://kitt.ai).
[Full Documentation](http://docs.kitt.ai/snowboy)


Version: 1.1.0 (9/14/2016)
Version: 1.1.0 (9/20/2016)

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
Expand Down Expand Up @@ -41,19 +41,22 @@ If you want support on other hardware/OS, please send your request to

## 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:
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.
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.0.4.tar.bz2)
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.0.4.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.0.4.tar.bz2)
* 64 bit Ubuntu [12.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1204-x86_64-1.1.0.tar.bz2)
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.1.0.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.1.0.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.0.4.tar.bz2))
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.1.0.tar.bz2))

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

Expand Down Expand Up @@ -187,9 +190,11 @@ See [Full Documentation](http://docs.kitt.ai/snowboy).

## Change Log

**v1.1.0, 9/14/2016**
**v1.1.0, 9/20/2016**

* Added library for Node.
* Added support for Python3.
* Updated universal `snowboy.umdl` model so that it works in noisy environment.

**v1.0.4, 7/13/2016**

Expand Down
Binary file modified lib/android/armv7a/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/ios/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/osx/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/rpi/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/ubuntu64/libsnowboy-detect.a
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "snowboy",
"version": "1.1.0",
"version": "1.0.11",
"description": "Snowboy is a customizable hotword detection engine",
"main": "lib/node/index.js",
"binary": {
"module_name": "snowboy",
"module_path": "./lib/node/binding/{configuration}/{node_abi}-{platform}-{arch}/",
"remote_path": "./{module_name}/v{version}/{configuration}/",
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
"host": "https://evancohen-snowboy.s3-us-west-2.amazonaws.com"
"host": "https://snowboy-release-node.s3-us-west-2.amazonaws.com"
},
"scripts": {
"preinstall": "npm install node-pre-gyp",
"install": "node-pre-gyp install --fallback-to-build",
"test": "node index.js",
"prepublish": "tsc --listFiles"
},
"author": "Kitt-AI <snowboy@kitt.ai>",
"author": "KITT.AI <snowboy@kitt.ai>",
"contributors": [
"Leandre Gohy <leandre.gohy@hexeo.be>",
"Evan Cohen <evanbtcohen@gmail.com>"
Expand Down
9 changes: 6 additions & 3 deletions swig/Node/snowboy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class SnowboyDetect : public Nan::ObjectWrap {
static NAN_MODULE_INIT(Init);

private:
explicit SnowboyDetect(const std::string& resource_filename, const std::string& model_str);
explicit SnowboyDetect(const std::string& resource_filename,
const std::string& model_str);
~SnowboyDetect();

static NAN_METHOD(New);
Expand All @@ -29,7 +30,8 @@ class SnowboyDetect : public Nan::ObjectWrap {

Nan::Persistent<v8::Function> SnowboyDetect::constructor;

SnowboyDetect::SnowboyDetect(const std::string& resource_filename, const std::string& model_str) {
SnowboyDetect::SnowboyDetect(const std::string& resource_filename,
const std::string& model_str) {
try {
this->detector = new snowboy::SnowboyDetect(resource_filename, model_str);
} catch (std::runtime_error e) {
Expand Down Expand Up @@ -65,7 +67,8 @@ NAN_MODULE_INIT(SnowboyDetect::Init) {

NAN_METHOD(SnowboyDetect::New) {
if (!info.IsConstructCall()) {
Nan::ThrowError("Cannot call constructor as function, you need to use 'new' keyword");
Nan::ThrowError("Cannot call constructor as function, you need to use "
"'new' keyword");
return;
} else if (!info[0]->IsString()) {
Nan::ThrowTypeError("resource must be a string");
Expand Down

0 comments on commit 1842346

Please sign in to comment.