Skip to content

No results in Streaming speech recognition #316

@JJablon

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

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