Questions tagged [sox]

SoX (Sound eXchange) is a computer program for audio manipulation. Questions about interactive use of the command line tool should be asked on Super User.

Sound eXchange, abbreviated SoX, is a free cross-platform digital audio editor, licensed under the GNU General Public License.

It can read and write many audio formats, including AU, WAV, AIFF, MP3 (via an external LAME MP3 encoder), Ogg Vorbis and FLAC. Some random features :

  • Editing via concatenate, trim, pad, repeat, reverse, volume, fade, splice, normalise
  • Recording and playing audio (on many systems); playing via URL (internet file or stream)
  • Processing via chorus, flanger, echo, phaser, compressor, delay, filter (high-pass, low-pass, shelving, etc.)
  • Adjustment of speed (pitch and tempo), pitch (without tempo), tempo (without pitch), and sample-rate
  • Noise removal using frequency profiling
  • Silent passage removal
  • Multi-file merging, multi-file and multi-track mixing.
563 questions
0
votes
0 answers

Using SoX to swap endianness of CAF files

We're trying to use SoX to convert our WAVs to CAFs for an iPhone project. At the moment, as the possesser of the only Mac in the office, it's me who has to regularly run afconvert to do this, but I'd prefer the guys actually making the audio could…
subi211
  • 105
  • 2
  • 9
0
votes
2 answers

Mix 2 audio files with android ffmpeg android

I am developing an android application for mixing 2 audio files.And i use android ffmpeg for that.I use following lib. from GitHub https://github.com/guardianproject/android-ffmpeg-java I use following code to mix 2 audio files from activity…
0
votes
2 answers

Runtime error about sox library in cocoa application

I am trying to sox library into my project and installed library using ./configure, make and make install and linked to the libsox.dylib into my project. I am not getting compiler error but getting run time error . Now i am getting following…
0
votes
2 answers

How to run same code on multiple files, or all files in directory

so I am very new to coding and recently wrote a little program that involved R and sox. It looked like this file <- "test.mp3" testSox = paste("sox ",file," -n spectrogram -o ",file,".png stats",sep='') sox = system(testSox, intern =…
0
votes
0 answers

Progress bar : Add Javascript with PHP, or use Ajax to check PHP process?

I'm coding a web application using SoX with the PHP exec() function. Problem, SoX is a bit slow, and takes sometimes more than a minute to finish its task. I'm trying to code a progress bar to let the user know that the web page has not crashed and …
Sunbird
  • 11
  • 4
0
votes
0 answers

Why sox trim and split operations (based on silence) are too slow in Windows

I am trying to implement sox into a speech recognition program. However it tooks nearly 10 seconds for sox to trim words in very simple sentence with 5-7 words (file size is also between 200-400kb) it is unacceptaable. What can I do, or which other…
user3575659
  • 51
  • 1
  • 3
0
votes
1 answer

Merging files together at a specific time

As the title suggest's, I want to merge files together but I want to be able to delay the 2nd file... Can I do this with sox? or do I have to use another audio editor... if so I need a cli (command line interface for it) So a example... I have a…
ryanc1256
  • 570
  • 6
  • 23
0
votes
1 answer

Animate console graphics without Curses

I have been using the SoX play command line tool to playback audio files from the console, and have noticed that there is a nice little display of the time info and left/right levels that update in real time with the audio source . . . Screenshot…
learnvst
  • 15,455
  • 16
  • 74
  • 121
0
votes
0 answers

Process WaitForExit not blocking

I am using a FilesystemWatcher class to convert audio to a listenable format as they come in. This worked perfectly for a while, until right around the time we upgraded to 4.5 on that server. Now, to get it to work, I need to debug it and set a…
Ehren
  • 171
  • 3
  • 14
0
votes
2 answers

How to fix a shell script that divides mp3 files into chunks and sends them to Google speech to text API to retrieve their content in textual form?

I have a shell script that : Takes an mp3 file and converts it into wav (using ffmpeg) Splits it in several chunks when it encounters silence (using sox) and Sends each one of this chunks to the Google API to retrieve the corresponding text,…
Albz
  • 1,982
  • 2
  • 21
  • 33
0
votes
1 answer

Sox stats and PHP using shell_exec

i ran into some problems lately with SoX and PHP. I am a complete beginner in running command-line tools in PHP, so i try to describe the problem as good as i can: So we have the following situation: There is a .wav-file in the folder…
bquarta
  • 559
  • 6
  • 19
0
votes
2 answers

Convert android wav file with SOX

Hi I use android to generate a wav file which is upload before to my server. In order to play this WAV file in a telephony system I must convert it to 16000 bitrate. The problem is the wav generate by android because I have this error : WAVE: RIFF…
henri_1310
  • 315
  • 7
  • 21
0
votes
2 answers

BASH script stop after executing one line but if I use echo instead of exec the output of the script completes

Background I am a newbie to Bash scripting and through Googling I have got as far as I have. I have two text files: "Filemp3.txt" that contains songname - artist.mp3 songname2 - artist2.mp3 songname3 - artist3.mp3 and Fileogg.txt that…
user3223819
  • 33
  • 1
  • 3
0
votes
1 answer

How to Combine two sox -m commands

Is it possible to combine these two sox commands into one (thereby getting rid of the temp file)? Thanks. sox -m 1.flac 2.flac tmp.flac reverse sox -m tmp.flac 3.flac final.flac reverse
Anthony K.
  • 29
  • 3
0
votes
1 answer

Text Based User Interface to stdout

I'm working on a headless device to play music, and I'm using Sox's play command to play the file. I'm after a way to pipe the output formatted like this: $play File.wav File.wav: File Size: 1.25M Bit Rate: 64.0k Encoding: Unsigned PCM…