listen

command
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

README

Dependencies

Swig

http://www.swig.org/

Go Package alongside the more idiomatic wrapper go-snowboy, plus PortAudio

github.com/brentnd/go-snowboy
github.com/gordonklaus/portaudio

Building

go build -o listen main.go

Running

./listen [path to snowboy resource file] [path to snowboy hotword file]

Examples

Cmd: ./listen ../../../resources/common.res ../../../resources/models/snowboy.umdl

Output:

sample rate=16000, num channels=1, bit depth=16
Silence detected.
Silence detected.
Silence detected.
You said the hotword!
Silence detected.

Documentation

Overview

This example streams the microphone thru Snowboy to listen for the hotword, by using the PortAudio interface.

HOW TO USE:

go run examples/Go/listen/main.go [path to snowboy resource file] [path to snowboy hotword file]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL