Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ by [KITT.AI](http://kitt.ai).

[Commercial application FAQ](README_commercial.md)

Version: 1.3.0 (2/19/2018)
Version: 1.4.0 (7/2/2018)

## Alexa support

Expand Down Expand Up @@ -181,10 +181,10 @@ dependencies like `fs`, `wav` or `node-record-lpcm16` depending on which script
you use.

## Precompiled Binaries with Python Demo
* 64 bit Ubuntu [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.3.0.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.3.0.tar.bz2)
* 64 bit Ubuntu [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.4.0.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.4.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.3.0.tar.bz2))
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.4.0.tar.bz2))

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

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

## Change Log

**v1.4.0, 7/2/2018**

* Added API for start and end frame ID
* Added `resources/models/neo_ya.umdl` for https://snowboy.kitt.ai/hotword/22171

**v1.3.0, 2/19/2018**

* Added Frontend processing for all platforms
Expand Down
13 changes: 9 additions & 4 deletions README_ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

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

版本:1.3.0(2/19/2018)
版本:1.4.0(7/2/2018)

## Alexa支持

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

## 预编译Python Demo的二进制文件
* 64 bit Ubuntu [12.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1204-x86_64-1.2.0.tar.bz2)
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.3.0.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.3.0.tar.bz2)
/ [14.04](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/ubuntu1404-x86_64-1.4.0.tar.bz2)
* [MacOS X](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/osx-x86_64-1.4.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.3.0.tar.bz2))
([1/2/3/Zero](https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.4.0.tar.bz2))
* 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))
* 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))

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

## 更改日志

**v1.4.0, 7/2/2018**

* 添加查看唤醒词的起止帧ID的API
* 添加 `resources/models/neo_ya.umdl` 给 https://snowboy.kitt.ai/hotword/22171

**v1.3.0, 2/19/2018**

* 添加前端处理到所有平台
Expand Down
3 changes: 3 additions & 0 deletions examples/Python/snowboydecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ def start(self, detected_callback=play_audio_file,
message = "Keyword " + str(status) + " detected at time: "
message += time.strftime("%Y-%m-%d %H:%M:%S",
time.localtime(time.time()))
message += "\n\tstart frame: %s, end frame: %s" % \
(str(self.detector.KwdSampleStart().__int__()),
str(self.detector.KwdSampleEnd().__int__()))
logger.info(message)
callback = detected_callback[status-1]
if callback is not None:
Expand Down
5 changes: 4 additions & 1 deletion examples/Python3/snowboydecoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import collections
import pyaudio
from . import snowboydetect
import snowboydetect
import time
import wave
import os
Expand Down Expand Up @@ -215,6 +215,9 @@ def audio_callback(in_data, frame_count, time_info, status):
message = "Keyword " + str(status) + " detected at time: "
message += time.strftime("%Y-%m-%d %H:%M:%S",
time.localtime(time.time()))
message += "\n\tstart frame: %s, end frame: %s" % \
(str(self.detector.KwdSampleStart().__int__()),
str(self.detector.KwdSampleEnd().__int__()))
logger.info(message)
callback = detected_callback[status-1]
if callback is not None:
Expand Down
7 changes: 7 additions & 0 deletions include/snowboy-detect.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class SnowboyDetect {
const int array_length, bool is_end = false);
int RunDetection(const int32_t* const data,
const int array_length, bool is_end = false);
int ResetSamplePointer();

// Sets the sensitivity string for the loaded hotwords. A <sensitivity_str> is
// a list of floating numbers between 0 and 1, and separated by comma. For
Expand Down Expand Up @@ -123,6 +124,9 @@ class SnowboyDetect {
// index of the hotwords.
int NumHotwords() const;

// Returns the hotword name of the model_id and hotword_id specified
std::string GetHotwordName(const int32_t hotword_id) const;

// If <apply_frontend> is true, then apply frontend audio processing;
// otherwise turns the audio processing off. Frontend audio processing
// includes algorithms such as automatic gain control (AGC), noise suppression
Expand All @@ -140,6 +144,9 @@ class SnowboyDetect {
int NumChannels() const;
int BitsPerSample() const;

int64_t KwdSampleStart() const;
int64_t KwdSampleEnd() const;

~SnowboyDetect();

private:
Expand Down
Binary file modified lib/aarch64-ubuntu1604/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/android/armv7a/libsnowboy-detect.a
Binary file not shown.
Binary file modified lib/android/armv8-aarch64/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
100644 → 100755
Binary file not shown.
Binary file modified lib/ubuntu64/libsnowboy-detect.a
100644 → 100755
Binary file not shown.
2 changes: 2 additions & 0 deletions swig/Python/snowboy-detect-swig.i
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
%begin %{
#define SWIG_PYTHON_STRICT_BYTE_CHAR
%}

%include "stdint.i"
2 changes: 2 additions & 0 deletions swig/Python3/snowboy-detect-swig.i
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
%begin %{
#define SWIG_PYTHON_STRICT_BYTE_CHAR
%}

%include "stdint.i"