Skip to content

No results in Streaming speech recognition #316

Description

@JJablon

Hey, i literally tried everything. @jmdobry could you look?
The response is always empty, when using the nodejs-docs-samples/speech/recognize.js with parameter listen
The examples with use of reading from the file works fine.

  1. I had to change line 16 to: recordProgram: 'sox'
    in file

\node-record-lpcm16\index.js

because the program uses "rec" by default, not "sox", and with "rec" there is an error, because there is not such file

  1. for troubleshooting, i edited line 226 in file recognize.js to:
    .on('data', (data) => {process.stdout.write(data.results); console.log(data);}
    and the result is:

 Listening, press Ctrl+C to stop.
{ error: null,
  results: '',
  resultIndex: 0,
  endpointerType: 'END_OF_AUDIO' }

previously did "install" command as described in the readme
win 8.1 pro
sox 14.4.2 from official site https://sourceforge.net/projects/sox/files/sox/14.4.2/ && path added to environmental "path" ( "sox" typed in cmd.exe works fine)
Node.js v 7.5.0

Activity

  1. JJablon commented on Feb 17, 2017

    @JJablon
    Author

    Moreover, depending on the signal level, the process ends after 0.5 - 5 seconds, but no matter how good audio is (i am using kinda "loopback", so the audio from the american native speakers recorded in good quality gets directly to mic input of the computer)
    The audio was thoroughly tested, and the same audio when streamed from file, as a file, not realtime streaming, is recognised with 95% efficiency (about 5% words misunderstood)

  2. JJablon commented on Feb 17, 2017

    @JJablon
    Author

    tried version 0.1.4 of the rec library (as suggested in one of threads by @jmdobry is guess) (also with change: line 26 to var cmd = 'sox'; from var cmd = 'rec';
    same result - not working

  3. JJablon commented on Feb 17, 2017

    @JJablon
    Author

    gillesdemey/node-record-lpcm16#8
    this probably helped (so far), issue to be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions