Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brentnd/go-snowboy
/ functions
Functions
31 in github.com/brentnd/go-snowboy
⨍
Functions
31
◇
Types & classes
12
↓ 7 callers
Method
Close
Close handles cleanup required by snowboy library Clients must call Close on detectors after doing any detection Returns error if Detector was never
snowboy.go:66
↓ 7 callers
Method
initialize
()
snowboy.go:182
↓ 4 callers
Method
AudioFormat
Fetch the format for the expected audio input Returns sample rate, number of channels, and bit depth
snowboy.go:54
↓ 3 callers
Method
AddWave
(filename string)
api.go:74
↓ 3 callers
Method
Handle
Install a handler for the given hotword
snowboy.go:86
↓ 3 callers
Method
HandleSilenceFunc
Installs a handle for when silence is detected based on the func argument instead of the Handler interface threshold (time.Duration) determined how l
snowboy.go:120
↓ 3 callers
Function
NewDetector
Creates a standard Detector from a resources file Gives a default gain of 1.0
snowboy.go:44
↓ 3 callers
Method
ReadAndDetect
Reads from data and calls previously installed handlers when detection occurs Blocks while reading from data in chunks of 2048 bytes. Data examples i
snowboy.go:131
↓ 3 callers
Method
route
(result snowboyResult)
snowboy.go:195
↓ 3 callers
Method
runDetection
(data []byte)
snowboy.go:213
↓ 2 callers
Method
HandleFunc
Installs a handle for the given hotword based on the func argument instead of the Handler interface
snowboy.go:101
↓ 2 callers
Function
NewDefaultHotword
Creates a hotword from model only, parsing the hotward name from the model filename and using a sensitivity of 0.5
snowboy.go:267
↓ 2 callers
Method
call
()
snowboy.go:242
↓ 1 callers
Method
Detected
(string)
snowboy.go:234
↓ 1 callers
Method
HandleSilence
Install a handler for when silence is detected threshold (time.Duration) determined how long silence can occur before callback is called
snowboy.go:108
↓ 1 callers
Function
NewHotword
Creates a hotword from model and sensitivity only, parsing the hotward name from the model filename
snowboy.go:273
↓ 1 callers
Method
Read
Read is the implementation of the io.Reader interface.
example/listen.go:27
↓ 1 callers
Method
SetAudioGain
Applies a fixed gain to the input audio. In case you have a very weak microphone, you can use this function to boost input audio level.
snowboy.go:165
↓ 1 callers
Method
Train
()
api.go:85
Method
ApplyFrontend
Applies or removes frontend audio processing
snowboy.go:177
Method
Detect
Calls previously installed handlers if hotwords are detected in data Does not chunk data because it is all available. Assumes entire length of data i
snowboy.go:80
Method
Detected
(keyword string)
snowboy.go:248
Method
NumNotwords
Returns the number of loaded hotwords
snowboy.go:171
Method
Reset
Resets the detection. The underlying snowboy object handles voice activity detection (VAD) internally, but if you are using an external VAD, you shoul
snowboy.go:158
Function
TestDetector_AudioFormat
(t *testing.T)
snowboy_test.go:23
Function
TestDetector_HandleSilenceFunc
(t *testing.T)
snowboy_test.go:35
Function
TestNewDetector
(t *testing.T)
snowboy_test.go:15
Function
handleDetection
(result string)
example/detect.go:11
Function
main
()
example/api.go:11
Function
main
()
example/detect.go:15
Function
main
()
example/listen.go:39