// <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.
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?