In my application I pass a fixed buffer of 1.5 ms to be recognized to pocketsphinx . Typically the buffer should contain one or two words but when there are more words ( like numbers said very fast), the recognizer takes a long time to give the output. Is there a way to know that the buffer contains more than two words, so that I exit the recognizer instead of waiting to get the recognition result.
I welcome any suggestions on this.
Thanks in advance,
J
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
In my application I pass a fixed buffer of 1.5 ms to be recognized to pocketsphinx . Typically the buffer should contain one or two words but when there are more words ( like numbers said very fast), the recognizer takes a long time to give the output. Is there a way to know that the buffer contains more than two words, so that I exit the recognizer instead of waiting to get the recognition result.
I welcome any suggestions on this.
Thanks in advance,
J
I meant 1.5 seconds..I apologize for the typo
Hm, if you need a fixed time for the recognition, can't you just insert an alarm and break the recognizer after 1.5 secs?