Skip to content

Unable to record speech #219

Description

@phanikumar1210

I am newbie to this Google and its API's I was able to decode the sample raw files. But I was unable to use speech recognition from microphone and I am getting the following error on my run.

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: spawn rec ENOENT
    at exports._errnoException (util.js:1007:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
    at onErrorNT (internal/child_process.js:348:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Function.Module.runMain (module.js:577:11)
    at startup (node.js:160:18)
    at node.js:456:3

Could you please let me know what is the exact issue.

Activity

  1. jmdobry commented on Sep 27, 2016

    @jmdobry
    Member

    We just published new Node.js Google Cloud Speech API samples a few hours ago. Give them a try: https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/speech

  2. jmdobry commented on Sep 27, 2016

    @jmdobry
    Member

    Basically:

    1. git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
    2. cd nodejs-docs-samples/speech
    3. npm install
    4. node recognize.js listen - Starts listening to your microphone, and detected speech is printed to your console
  3. phanikumar1210 commented on Sep 28, 2016

    @phanikumar1210
    Author

    I am getting the same error with new code as well. I think there is an issue with microphone recognization do I need to make any changed to the settings to identify or recognize microphone. I am using windows 8.1.

  4. jmdobry commented on Sep 28, 2016

    @jmdobry
    Member

    Looking at https://github.com/gillesdemey/node-record-lpcm16 (which is what the microphone recording sample uses), it looks like you need to have SoX installed on your system. For windows, it looks like you have to download a binary

  5. phanikumar1210 commented on Sep 28, 2016

    @phanikumar1210
    Author

    I have installed it after having a look at the node module requirements. But I was unable to perform recording.

  6. damienromito commented on Sep 29, 2016

    @damienromito

    launch brew install sox on OSX fixed it for me

  7. phanikumar1210 commented on Sep 29, 2016

    @phanikumar1210
    Author

    I am working with windows operating system and I have installed sox on it but I am facing the same error. I have also tried using node-record-lpcm16 module there is a problem with that module itself.

  8. jmdobry commented on Sep 29, 2016

    @jmdobry
    Member

    @phanikumar1210 Have you opened an issue on the node-record-lpcm16 repository?

  9. phanikumar1210 commented on Sep 29, 2016

    @phanikumar1210
    Author

    There is an existing issue on it without response. Do we have any other source which is working on windows. On which platforms is this code got tested. Does this code work on Ubuntu platform.

  10. stshume commented on Nov 22, 2016

    @stshume

    Did anyone get this working on the Windows OS?

  11. freund17 commented on Nov 23, 2016

    @freund17

    I think i found a fix.
    See my comment over at gillesdemey/node-record-lpcm16#8.

  12. j84guo commented on Feb 26, 2018

    @j84guo

    @damienromito probably has the right solution if you're on mac (brew install sox)

  13. 3 remaining items

  14. added a commit that references this issue on Nov 17, 2022
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