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

Is returned hyp data a evergrowing string? #53

Open
novice79 opened this issue Jan 27, 2016 · 2 comments
Open

Is returned hyp data a evergrowing string? #53

novice79 opened this issue Jan 27, 2016 · 2 comments
Labels

Comments

@novice79
Copy link

forgive for my newbie question. I tried live_zh.html demo, this:
if (e.data.hasOwnProperty('hyp')) {
var newHyp = e.data.hyp;
...
be called about 1time/sec, and return a evergrowing hyp_string. Is there memory issue for longterm run(says hours or days)?
how do I get just recently recognized keyword.

@syl22-00
Copy link
Owner

I don't see why you'd have the recognizer listen for hours. In general people recognize long audio after having cut them into smaller chunks. And especially for pocketsphinx.js, in the browser, I don't see why you'd need to listen for hours.

But still to answer your question, yes, the hypothesis is kept in memory, but even for a few hours, it's not that big.

@novice79
Copy link
Author

thank you for your answer.
because I want to make a televox game, the character in the virtual game world controlled by voice command, you say 'run' it run, 'turn left' it does what you say.
I mean a voice controlling mmorpg may need this long time run ability.
I will try to restart reognizing intermittently

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

No branches or pull requests

2 participants