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

Unable to record speech #219

Closed
phanikumar1210 opened this issue Sep 27, 2016 · 13 comments
Closed

Unable to record speech #219

phanikumar1210 opened this issue Sep 27, 2016 · 13 comments
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@phanikumar1210
Copy link

phanikumar1210 commented Sep 27, 2016

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.

@jmdobry
Copy link
Member

jmdobry commented Sep 27, 2016

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

@jmdobry
Copy link
Member

jmdobry commented Sep 27, 2016

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

@phanikumar1210
Copy link
Author

phanikumar1210 commented Sep 28, 2016

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.

@jmdobry
Copy link
Member

jmdobry commented Sep 28, 2016

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

@phanikumar1210
Copy link
Author

phanikumar1210 commented Sep 28, 2016

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

@damienromito
Copy link

damienromito commented Sep 29, 2016

launch brew install sox on OSX fixed it for me

@phanikumar1210
Copy link
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.

@jmdobry
Copy link
Member

jmdobry commented Sep 29, 2016

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

@phanikumar1210
Copy link
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.

@stshume
Copy link

stshume commented Nov 22, 2016

Did anyone get this working on the Windows OS?

@freund17
Copy link

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

@j84guo
Copy link

j84guo commented Feb 26, 2018

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

@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
@northwindapps
Copy link

northwindapps commented Oct 6, 2020

When deploying it to Heroku, what should I do to install sox there?

UPDATE: Seems Heroku doesn't support microphone-input, I try it on GAE.

ace-n pushed a commit that referenced this issue Nov 11, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 11, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 14, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 15, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 15, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 17, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ace-n pushed a commit that referenced this issue Nov 17, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
ahrarmonsur pushed a commit that referenced this issue Nov 17, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json [ci skip]
NimJay pushed a commit that referenced this issue Nov 18, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
NimJay pushed a commit that referenced this issue Nov 18, 2022
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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

8 participants