Skip to content
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

NodeJS example for write speech in wav after hotword detection #298

Open
sintetico82 opened this issue Oct 22, 2017 · 2 comments
Open

NodeJS example for write speech in wav after hotword detection #298

sintetico82 opened this issue Oct 22, 2017 · 2 comments

Comments

@sintetico82
Copy link

Hi,
I am now about nodejs programming. I saw this example https://github.com/Kitt-AI/snowboy/blob/master/examples/Node/microphone.js with NodeJs and all work good. I want record audio in wav file after hotword detection but i don't understand how i can do that.

In the example there is this comment:

// <buffer> contains the last chunk of the audio that triggers the "hotword" // event. It could be written to a wav stream. You will have to use it // together with the <buffer> in the "sound" event if you want to get audio // data after the hotword.

But how?

@chenguoguo
Copy link
Collaborator

See here: #1

@sintetico82
Copy link
Author

I saw, but it's little bit complicated. Can you provide an example using _hotword_and sound event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants