Repository navigation
Unable to record speech #219
Description
Activity
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
Basically:
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.gitcd nodejs-docs-samples/speechnpm installnode recognize.js listen- Starts listening to your microphone, and detected speech is printed to your console
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.
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
I have installed it after having a look at the node module requirements. But I was unable to perform recording.
Reacted by Damien Romito Castro and zhaolewenlaunch
brew install soxon OSX fixed it for meReacted by Pete Gordon, sephv, Maurício Pena, Aditya Vikas Devarapalli, kheiakiyama, Ana Luiza Portello Bastos, JG and Hossein DehnoReacted by Pete Gordon, chck, Aditya Vikas Devarapalli and Ana Luiza Portello BastosI 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.
@phanikumar1210 Have you opened an issue on the
node-record-lpcm16repository?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.
Did anyone get this working on the Windows OS?
I think i found a fix.
See my comment over at gillesdemey/node-record-lpcm16#8.Reacted by Jason Dobry@damienromito probably has the right solution if you're on mac (brew install sox)
- added🚨This issue needs some love.This issue needs some love.triage meI really want to be triaged.I really want to be triaged.
on Apr 6, 2020 3 remaining items
- added a commit that references this issue
on Nov 16, 2022 - added a commit that references this issue
on Nov 17, 2022 - added 2 commits that reference this issue
on Nov 18, 2022 - added a commit that references this issue
on Feb 16, 2023
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.
Could you please let me know what is the exact issue.