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

Recognize.js on Audio Stream is not very realtime #357

Closed
rcoenen opened this issue Apr 22, 2017 · 2 comments
Closed

Recognize.js on Audio Stream is not very realtime #357

rcoenen opened this issue Apr 22, 2017 · 2 comments
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@rcoenen
Copy link

rcoenen commented Apr 22, 2017

I have been testing extensively with node recognize.js listen (to microphone input)

It appears to me that the real-time transcription of text is not nearly as realtime as compared to using Google Search microphone input on Chrome or for example my Android device.

Is there a way to make it more realtime by for example making the chunk size smaller or force more frequent updates?

@jmdobry
Copy link
Member

jmdobry commented Apr 25, 2017

You can receive interim results, e.g.

const request = {
  config: {
    encoding: encoding,
    sampleRateHertz: sampleRateHertz,
    languageCode: languageCode
  },
  interimResults: true
};

See https://cloud.google.com/speech/reference/rpc/google.cloud.speech.v1#google.cloud.speech.v1.StreamingRecognitionConfig

@fhinkel
Copy link
Contributor

fhinkel commented Nov 8, 2018

If the issue still persists, please file it here. Thank you.

@fhinkel fhinkel closed this as completed Nov 8, 2018
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
ahrarmonsur pushed a commit that referenced this issue Nov 18, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Benjamin E. Coe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants