You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing, I would like to record my voice and give the recorded sample to snowboy for testing my script without having to speak into my microphone everytime.
On pocket_sphinx continus there is an option to do that pocketsphinx_continuous -infile file.wav
The text was updated successfully, but these errors were encountered:
std::cout << "Listening... Press Ctrl+C to exit" << std::endl;
std::vector<int16_t> data;
while (true) {
pa_wrapper.Read(&data);
if (data.size() != 0) {
int result = detector.RunDetection(data.data(), data.size());
if (result > 0) {
std::cout << "Hotword " << result << " detected!" << std::endl;
}
}
}
What you have to do is, instead of reading the data using pa_wrapper.Read(&data); which calls PortAudio and captures audio through the microphone, you should read the data from audio file. Make sure your audio file is in the correct format (16k sampling rate, 1 channel, 16 bit signed integer), linear PCM.
For testing, I would like to record my voice and give the recorded sample to snowboy for testing my script without having to speak into my microphone everytime.
On pocket_sphinx continus there is an option to do that
pocketsphinx_continuous -infile file.wav
The text was updated successfully, but these errors were encountered: