Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not able to start the program. I understand i have to use it as a prompt command to open but what do i need to write down there in order to work? This is what i type in cmd and select it and typed in sox.exe infile.wav outfile.mp3 or only sox.exe but it is not recognised as a program on my laptop. Can anyone please help?

share|improve this question
add comment

1 Answer

SoX.exe is an installer. You want to double-click the .exe file, install it, and then perform whatever commands you want by typing, for example, sox infile.wav outfile.mp3 in cmd. (source)

Edit: Nevermind! Sox installs itself in the Programs File folder (C:\Program Files\sox-[version] on my computer), and as a desktop shortcut, and must be run as a .exe file like you said. The easiest way to do this is to click-and drag the sox.exe desktop shortcut into your cmd window, then append your other arguments (infile.wav outfile.mp3 etc). So the whole command would look like "C:\Users\[user]\Desktop\sox.exe.lnk" infile.wav outfile.mp3.

If your installer didn't make a shortcut, navigate to the sox directory, and click-and drag sox.exe into your cmd window, then append arguments. Ex: "C:\Program Files\sox.exe" infile.wav outfile.mp3


Edit: Aaaand as for how to actually use SoX for what you want... SoX does have a pitch-shift command, according to the documentation page:

pitch [−q] shift [segment [search [overlap]]]
Change the audio pitch (but not tempo).
shift gives the pitch shift as positive or negative ‘cents’ (i.e. 100ths of a semitone).

I don't, however, know how to convert semitones and Hz, or actually pretty much anything musical.

Unless you need a commandline solution (like if you want to make a script), it'd probably be easier to use Audacity's Effect > Change Pitch menu, which has Hz options and is really easy to use.

share|improve this answer
    
I did, problem is when i double click sox.exe the cmd window appears and dissapears almost simultaneously. Even when i first open cmd and then type in sox.exe it doesn't find the file. –  RCduck7 Jan 29 '13 at 17:33
    
Once you've double-clicked the executable, the program should be installed. Does the sox command work (as I wrote in the answer)? –  Marcus Chan Jan 29 '13 at 17:36
    
Nope, cmd window closes within a second after it opens. I read about same problem an other user has and they suggested he started with cmd and type in further from there to open the program. Don't know what else to type then what i listed above as commands, nothing seem to work whaterver version i choose of sox. –  RCduck7 Jan 29 '13 at 17:41
    
To execute a command, you should only have to type its name, like "sox (whatever)" instead of "sox.exe (whatever)"; what is the result of putting something likt that in cmd? –  Marcus Chan Jan 29 '13 at 17:46
    
Ok, sox only then. The result is an other window that says it is not a valid win32 application. Thanks for helping me so far, i appreciate it. –  RCduck7 Jan 30 '13 at 20:43
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.