Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix wake word record length #1207
Currently, wake word recordings that are used when the user opts in are too short (0.1 seconds or less). This fixes that. This also changes the value in the config to be in seconds. @forslund Let me know if there's a reason we should keep this as 120. I wasn't really sure what unit that was in, so I could be messing something up.
Steps for Testing
I did some testing on dev and feature/precise and can't seem to reproduce this.
Could it be that the num_phonemes is actually 0 (or possibly 1) in your test case?
The cast to int when converting to bytes is a really good catch. Is it that or upping the time per phoneme that's the core fix?