MCPcopy Create free account

hub / github.com/brentnd/go-snowboy / functions

Functions31 in github.com/brentnd/go-snowboy

↓ 7 callersMethodClose
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 callersMethodinitialize
()
snowboy.go:182
↓ 4 callersMethodAudioFormat
Fetch the format for the expected audio input Returns sample rate, number of channels, and bit depth
snowboy.go:54
↓ 3 callersMethodAddWave
(filename string)
api.go:74
↓ 3 callersMethodHandle
Install a handler for the given hotword
snowboy.go:86
↓ 3 callersMethodHandleSilenceFunc
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 callersFunctionNewDetector
Creates a standard Detector from a resources file Gives a default gain of 1.0
snowboy.go:44
↓ 3 callersMethodReadAndDetect
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 callersMethodroute
(result snowboyResult)
snowboy.go:195
↓ 3 callersMethodrunDetection
(data []byte)
snowboy.go:213
↓ 2 callersMethodHandleFunc
Installs a handle for the given hotword based on the func argument instead of the Handler interface
snowboy.go:101
↓ 2 callersFunctionNewDefaultHotword
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 callersMethodcall
()
snowboy.go:242
↓ 1 callersMethodDetected
(string)
snowboy.go:234
↓ 1 callersMethodHandleSilence
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 callersFunctionNewHotword
Creates a hotword from model and sensitivity only, parsing the hotward name from the model filename
snowboy.go:273
↓ 1 callersMethodRead
Read is the implementation of the io.Reader interface.
example/listen.go:27
↓ 1 callersMethodSetAudioGain
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 callersMethodTrain
()
api.go:85
MethodApplyFrontend
Applies or removes frontend audio processing
snowboy.go:177
MethodDetect
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
MethodDetected
(keyword string)
snowboy.go:248
MethodNumNotwords
Returns the number of loaded hotwords
snowboy.go:171
MethodReset
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
FunctionTestDetector_AudioFormat
(t *testing.T)
snowboy_test.go:23
FunctionTestDetector_HandleSilenceFunc
(t *testing.T)
snowboy_test.go:35
FunctionTestNewDetector
(t *testing.T)
snowboy_test.go:15
FunctionhandleDetection
(result string)
example/detect.go:11
Functionmain
()
example/api.go:11
Functionmain
()
example/detect.go:15
Functionmain
()
example/listen.go:39