-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enable cloud reco without hotword detection #103
base: dev
Are you sure you want to change the base?
Conversation
ok, i have a problem,with the last change.. when we do a Sonus.stop, we tell the node-record-lpcm16 module to stop, killing the arecord engine.. but that yanks the stream out from under snowboy, who rightfully throws an error
which appears on the smart-mirror , npm start console. so, I wanted to hide the expected error the detector is in an unrecoverable state then I later send a new 'Sonus.start() and he creates another detector, which starts arecord again.. the under the covers one doesn't stream as the pipe is broken if I let the error flow to the npm start console, all works ok.. i looked at the snowboy library and don't see a stop() function . there is reset(), but I can't tell what it does. is there a better way to capture the detector error when the pipe is killed below it? |
the error above is fatal, smart-mirror sonus background process crashes, and smart-mirror starts it back up, so now we are out of sequence so, doesn't work.. works great on fast intel box. without the keyword spotter, its graceful , down on stop() and back up on start() |
never mind, staring me right in the face!.. unpipe the mic! before stop.. it gets repiped on start stop just needs to have the sonus object passed back in (like Start).. this could be a breaking change if anyone used stop |
works great! |
I have a reliable working version now. the restart of arecord (before its .wav file 2 gig limit) needed time to shutdown, and there was a possibility that there could be more buffers over the data limit before we could actually get arecord stopped. |
…arting, restart fails otherwise
on two of my machines, when we do the arecord stop/restart because of the node-record-lpcm16 wav file overflow, the existing process takes over 300 milliseconds to stop. i had created a library to do this in the code for sharing the mic, so use it here as well. |
change path of gbithub dependencies to add userid
update github dependencie url
add job (snowboy from EXT-Detector @bugsounet)
for a conversational app, we need the ability to capture spoken phrases one at a time.
my google assistant app has a few processes which take multiple question/answer cycles
add a calendar entry, label, when, what time, save?
the 1st starts with a hotword cycle, but the rest become unusable with hotword and app targeting
all I did was move things around and use hotwords=-1 as a flag (you allow hotwords=null already
start Streaming reco on start request
this allows the current usage unchanged and a new usage in sequence