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

recognizer.on result never gets called. #30

Closed
tab-zero opened this issue Dec 31, 2021 · 3 comments
Closed

recognizer.on result never gets called. #30

tab-zero opened this issue Dec 31, 2021 · 3 comments

Comments

@tab-zero
Copy link

I used the react code, and it never calls this piece of code. Is there a parameter to set to enable collecting result?

recognizer.on("result", (message: any) => {
      const { result } = message;
      setUtterances((utt: VoskResult[]) => [...utt, result]);
    });
@ccoreilly
Copy link
Owner

Are you sure the model is being loaded and audio is being sent? Please share more logs as results should be sent as long as enough audio is being sent to the worker.

@ccoreilly
Copy link
Owner

@tab-zero Can you share a reproduction script?

@ccoreilly
Copy link
Owner

Feel free to reopen if you can share a reproduction script.

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

No branches or pull requests

2 participants