The Go bindings for snowboy audio detection (https://github.com/Kitt-AI/snowboy) are generated using swig which creates a lot of extra types and uses calls with variable arguments. This makes writing integrations in golang difficult because the types aren't explicit. go-snowboy is intended to be a wrapper around the swig-generated Go code which will provide Go-style usage.
See https://godoc.org/github.com/brentnd/go-snowboy
- SWIG (v 3.0.12 recommended)
- github.com/Kitt-AI/snowboy/swig/Go
Example hotword detection usage in example/detect.go
.
Example API hotword training usage in example/api.go
.
go build -o build/snowboy-detect example/detect.go
go build -o build/snowboy-api example/api.go
go build -o build/snowboy-listen example/listen.go
usage: ./build/snowboy-detect <resource> <keyword.umdl> <audio file>
usage: ./build/snowboy-listen <resource> <keyword.umdl>
Makefile
has some standard targets to do go build
steps