-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to pass additional parameter (ex. the "-s" for "sox tempo -s 0.5") #25
Comments
I would expect this to work: var transform = sox({
input: { type: 'mp3' },
output: { type: 'mp3' },
effects: [
'tempo', '-s', speedCoeff //not working crash
]
}); but apparently that's crashing for you. Maybe you could send the error message you're getting? Troubleshooting steps: I recommend editing return flattened.concat(ele)
}, [])
+ console.log('sox ' + args.join(' '))
var sox = cp.spawn(opts.soxPath || 'sox', args)
sox.stdout.pipe(soxOutput) That will log out the command line arguments being used. Then you can try running it on the command line to try to determine why it crashes. Is it the I'm guessing the output will look like this:
You can test if sox crashes with that command... If it does, you might try the following command. If sox does not crash with the following command, but it does crash with the previous command, then sox doesn't like the "output-to-stdout" feature for whatever reason, and you can't use this library.
|
Thank you so much for your help! You were right, I manage to make it work with "'tempo', '-s', speedCoeff". I don't know what happened. I did some refactoring on my code and this morning I tried again and it worked. It was a problem on my side, sorry for the time wasted. |
Glad you got it working! |
@ArtskydJ I am running into a similar issue with
the second command you suggested also works, it seems to only be a problem when trying with this package.
Here is my code:
this might be related to #19 |
I tested a couple things with child_process. I changed the spawn to
and got this output when running the script
|
Hi,
Thank you for this project, it's super useful.
I'm trying to run "sox tempo -s 1.5" with the lib, but I can't manage to pass the "-s" parameter. It's working without it.
I know this parameter "-s" is working, because when I run it in the terminal it works: sox normal.mp3 slow.mp3 tempo -s 0.5
I feel I tried everything:
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: