Repository navigation
Unable to run recognize.JS #332
Description
Activity
I got around this by setting
recordProgramto'sox'in the options passed torecord.start()eg.
record.start({ sampleRateHertz: sampleRateHertz, threshold: 0, recordProgram: 'sox' }).pipe(recognizeStream);Reacted by Fairnia@MarcoThePoro Now i get this error
Error: spawn sox ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:968:3- Did you make sure to install SoX and add it to your path? The speech example readme says this: Note: The listen command requires that you have SoX installed and available in your $PATH. See https://www.npmjs.com/package/node-record-lpcm16#dependencies.…On Sun., 23 Apr. 2017, 11:15 pm Danish Nazir, ***@***.***> wrote: @MarcoThePoro <https://github.com/MarcoThePoro> Now i get this error Error: spawn sox ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:968:3 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#332 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHazr7u7m9mwAxMfZCG2yNVqU3d0R4_oks5ry07pgaJpZM4Mxyxp> .
Hi there yes i have installed it and now that problem is resolved thanks
Hi @MarcoThePoro i have been able to successfully compile it but whenever i run it using the listen option it says Listening, press Ctrl+C to stop. but after this it automatically stop with no error messages! any ideas?
- I ran into that issue but just gave up then…On Mon., 24 Apr. 2017, 3:12 am Danish Nazir, ***@***.***> wrote: Hi @MarcoThePoro <https://github.com/MarcoThePoro> i have been able to successfully compile it but whenever i run it using the listen option it says Listening, press Ctrl+C to stop. but after this it automatically stop with no error messages! any ideas? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#332 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AHazr044EM1K86cZNyqY48-lqQDVXp3iks5ry4aWgaJpZM4Mxyxp> .
@MarcoThePoro oh i see i am amazed to see that no one from google is helping us in solving this problem i mean where they? i am thoroughly disappointed!!
@danishnazir Can you provide extensive details so we can reproduce the behavior you're experiencing? OS, Node version,
@google-cloud/speechversion, sox version,node-record-lpcm16version, etc.Here are the details
sox:v14.4.2
node:v4.4.4
@google-cloud/speech: same version as here in github repo as i am cloning
node-record-lpcm16:same version as here in github repo as i am cloning
@jmdobryWe just updated this repo yesterday, so you might want to try re-cloning it and re-installing dependencies. You might also try upgrading Node.js to say, 6.10.1
Hi @jmdobry i just reclonned the repo and upgraded my node setup but still same issue
Can you try changing the options (found here) passed to
record.start()? In particular, what happens if you change thesilenceoption to"10.0", or what happens if you change therecordProgramoption to"sox"?@jmdobry still the same problem!! Including the extra perimeters didn't help me!
record.start({ sampleRate: sampleRate, threshold: 0, recordProgram: 'sox', silence: 10.0 }).pipe(recognizeStream);
I think the value for
silenceis supposed to be a string, and did you try different values forrecordProgramand threshold?i tried using string too!! and no i havent manipulated the threshold yet
14 remaining items
- 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 7, 2020 - added 6 commits that reference this issue
on Nov 11, 2022 - added a commit that references this issue
on Nov 16, 2022 - added a commit that references this issue
on Nov 17, 2022 - added a commit that references this issue
on Nov 17, 2022 - added a commit that references this issue
on Nov 18, 2022
Hi there !
Whenever i try to execute the recognize.JS file i get the following error
command: node recognize listen
Result:Listening, press Ctrl+C to stop. events.js:141 throw er; // Unhandled 'error' event ^ Error: spawn rec ENOENT at exports._errnoException (util.js:870:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) at onErrorNT (internal/child_process.js:344:16) at nextTickCallbackWith2Args (node.js:442:9) at process._tickCallback (node.js:356:17) at Function.Module.runMain (module.js:443:11) at startup (node.js:139:18) at node.js:968:3