-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error: spawn rec ENOENT #8
Comments
I'm getting a similar error, if not the same
|
yepp me too. |
It appears rec is no longer shipped with sox. http://superuser.com/questions/192327/how-can-i-record-sound-from-the-windows-command-line new command should be like: |
I am having the same error, has anyone already fixed this issue? |
same error |
I have the same error :( anyone? |
same error. |
annoying errror |
still unresolved |
I got it running for me:
Yeah... and the options weren't linked to the sample rate. Have a nice day! |
You can specify the https://github.com/gillesdemey/node-record-lpcm16#options |
Hi,
Also, for my application I used raw as audio type. Would it be possible to have that as an option? As well as the bit-depth (precision)? |
Has this been tested on Windows yet? It seems to be running fine and even generates an audio file. But the audio file is unplayable/corrupt. |
Hi, My test-code:
Remember to have sox in PATH. @AnimaMundi Did you try opening your file with a text-editor? Pretty sure sox just dumped its help-page because of the wrong cmd-args. ;) |
@freund17 thanks for getting back, but unfortunately I'm under time restraints at the moment so I moved on from this when I couldn't get it working within a few hours and ended up using the node-microphone package instead. |
@freund17 code works, but i am not able to play the recorded file as it says it is corrupted and I can see the english content when i opened it in text editor |
I added a PR like -- ages ago -- #28 you should give it a try. The version in my PR worked for me (sox, windows, node 5?) -- at least at the time. |
@freund17 Ah so the PR hasen't been accepted yet? Damn.. I'll have a look^^ |
Hi, I use this code record
on linux i put recordProgram: 'rec' works. Do I have to enter the channel or device? I tried but did not go. |
I am still facing this issue. I have installed SOX and placed its location in the Path variable but still getting the "Spawn Sox Enonet" error. !! |
Ok, To anyone who still has this issue.
|
The change @Esinko recommended worked. Please integrate into the main branch! |
hi @Esinko , I updated my index,js file as mentioned -- case 'rec': But still i am getting same error - Error: spawn sox ENOENT i am using below code-- 'use strict' var record = require('node-record-lpcm16'); var file = fs.createWriteStream('test.wav', { encoding: 'binary' }) record.start({ Currently i am working on Windows 10 . Could you please suggest on what is going wrong ? |
Do you have sox installed and added to env variables? |
hi @Esinko , Yes , i have installed sox and added to path -
current update - i passed option parameters as {shell: true} instead of { encoding: 'binary' } , NOw i am not getting error but it does not records audio . i mean , it completes code execution immediately |
If you're on MacOS and don't have sox installed yet, just do the following: brew update && brew install sox |
It has to be a sox issue, Try using the command the code executes |
Fixed in #39 |
Good Morning, I have been stepping through this all yesterday and today, and from what I can tell, there might be an issue with spawn:
index.js - line44
rec = spawn(cmd, cmdArgs);
spawn calls this file: child_process.js @line: 990
var spawn = exports.spawn = function(/file, args, options/) { //These are commented out
I see that spawn doesn't take any arguments?
I am on windows 10
node v.0.12.7
I wanted to see if you gentleman ran into this? Thank you for your help.
The text was updated successfully, but these errors were encountered: