The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
3answers
639 views

Converting a Raw g722 File to a .wav with SOX

I am trying to troubleshoot some VOIP issues, and have been capturing the packets for the trouble calls. However my calls are all encoded in g722 and I am having trouble decoding this. I have ...
1
vote
1answer
281 views

How to record 10 seconds of audio with SoX?

I want to record 10 seconds of audio from my microphone input with SoX. I haven’t found any example in the documentation or elsewhere that would show how to do it. Here’s my current command using ...
0
votes
1answer
101 views

FFmpeg audio phase reversal

I'm writing a script which performs a series of operations on several .wav files. One of the operations is phase reversal (from what I gather, a 180 degrees phase shift). Is this possible with FFmpeg ...
0
votes
1answer
26 views

Maximum number of files that can be merged in SoX?

For anyone who has experience with the sox audio tool, what is the maximum amount (in MB) of files you have tried to merge? So far I have merged up to 925MB worth of wav files and have not had ...
0
votes
1answer
795 views

Pipe output file into UNIX tool

I want to pipe the output file from the command line audio tool SoX into the email tool mutt. What I want to do is something akin to this: sox /Users/someUser/Desktop/input.mp3 output.mp3 | mutt -s "...
0
votes
0answers
73 views

Using SOX as audio pass-through

I need to pass the audio, in near-real time, coming from the optical input of my computer into my external USB DAC, so I thought SOX might be a solution, so, I did this: sox -d -d It works, but ...
4
votes
3answers
2k views

script to run sox to combine multiple mono tracks to stereo

I have a folder full of .wav audio files. Some are stereo, most are mono splits. The mono split pairs are all named foo bar track.L.wav and foo bar track.R.wav I can use the command line tool sox ...
1
vote
1answer
1k views

need to clean up audio noise using sox

What I am doing right now is recording audio from my mic using arecord and piping the raw output to VLC like so: arecord -r 8000 - | vlc -vvv - It works great, except the audio that is coming out ...
4
votes
4answers
6k views

Creating stereo file from two mono files with sox

I'm using sox 14.2.0 on Centos 6.0. I have two mono wav files, left.wav and right.wav. I need to combine them into one stereo.ogg file, with left.wav pan 80% to the left, and right.wav pan 80% to ...
0
votes
0answers
56 views

Using SoX Bend to manipulate audio pitch

I want to change the frequency of an audio file dynamically. Meaning: part of the file should sound (say) one octave higher and the part lower (preferably using a sine function). How to do it? ...
2
votes
0answers
17 views

Remove sections of audio in SoX

What's the easiest way to remove the specified sections of a wav file using SoX? Right now I use the trim command to break up the file and then concatenate the parts. However, that seems a little ...
1
vote
2answers
717 views

Trouble Installing SoX

I am running Mac OSX 10.8.4 and am unable to install SoX. I have almost 0 knowledge of UNIX or terminal but require SoX for an audio job. I have downloaded Sox-14.4.1 from the site. I attempt to ...
0
votes
1answer
61 views

How to trim and join several parts of an audio file using crossfades?

I want to keep several sections of an audio file, merged together, but without any discontinuities ("clicks") at the join points. There's a SoX command that does this (http://superuser.com/a/677351), ...
1
vote
0answers
258 views

Can't set sample rate to 44100 Hz when using loopback in ALSA

I have set up ALSA like this to play to and record from loopback devices: # output device pcm.loopout { type dmix ipc_key 328211 slave { pcm "hw:Loopback,0,0" period_size 1024 ...
9
votes
1answer
12k views

command-line utility to record from microphone

I am looking for command-line utility that monitors the microphone, and if you start to speak, writes the file. Recording period should be adjusted. Solution is: sox -t alsa default recording.wav ...
1
vote
1answer
201 views

Converting file to PCM using SoX

I am using SoX. A-Law, 8000 Hz, 64 Kbps, mono Is the format I need What I tried: input -c 1 -r 8000 output It is not working for me, please advise. I get the file output, it's just not ...
3
votes
1answer
1k views

Stream live audio with noise filter in Linux

I need to strip the noise from an audio source, but it needs to happen live. The resulting voice doesn't need to sound perfect, it just can't contain too much noise. I've read up about sox, but it ...
0
votes
1answer
111 views

How to stream audio and capture at the same time

I would like to save the mp3 that is being stream to the local file for archival purposes. I'm using the following line in my bash script to stream audio from a USB audio device to my icecast server....
0
votes
1answer
208 views

Error when trying to convert 2-channels sound file to mono using sox or ffmpeg

When I tried: sox file.wav -c 1 file.wav I got: sox WARN wav: Premature EOF on .wav input file When I tried: ffmpeg -i file.wav -ac 1 file.wav I got: [pcm_s16le @ 0x2997880] Invalid PCM ...
0
votes
1answer
4k views

Convert GSM audio file to G.729

How can I convert GSM sound files to G.729 format? I've used Sox in the past for transcoding sound files, but have not been able to find a way to transcode to G.729. Using Sox, I have found a way to ...
1
vote
2answers
1k views

Create a video file from an audio file and add visualizations from audio

My initial thought was to upload audio files to YouTube along with video that is inspired from the audio. The particular visualization can be in different form such as spectrum, spectogram, or other ...
4
votes
3answers
3k views

how to record mic input and pipe the output to another program

Hi everyone Im trying to follow a tutorial on generating truly random bits How To Generate Truly Random Bits This is the command from the tutorial but it does not work rec -c 1 -d /dev/dsp -r 8000 -...
1
vote
1answer
457 views

piping cdparanoia through play, aplay, /dev/sound, etc

Currently I am trying to use cdparanoia to play from an audio cd directly without making any temporary files. I can play the first track of a cd realtime by doing cdparanoia -e 1 /dev/shm/tmp.wav 2&...
1
vote
1answer
2k views

Loop audio file to a given length

I'm currently facing an issue where I need to take some mp3 file and make another mp3 file where the first one is playing for a given amount of time, looped if needed. Preferably I'm looking for a ...
2
votes
1answer
763 views

Plotting the volume of an audio file

Most applications that play sound display its volume graphically. I need that information (the sound volume as it changes over time) written to a text file so I can plot it myself and use it for ...
2
votes
1answer
211 views

Make SoX not show output

I'm recording with SoX, and I want to make it not show output at all. When recording, it shows this output: Input File : 'default' (waveaudio) Channels : 2 Sample Rate : 48000 Precision ...
2
votes
1answer
169 views

Merging files with sox sequentially

I have seen posts where people merge multiple sound files into one outfile like: soxmix in1.wav in2.wav in3.wav out.wav. However they are all on top of each other. Is there a way to merge so that ...
1
vote
1answer
348 views

How do I convert a batch of audio files on Windows?

I have a folder structure like this: -dir1 -subdir1 -subdir2 -file1.wav -file2.wav -dir2 -etc... Inside the folders are thousands of audio files that need to be ...
1
vote
1answer
603 views

SoX pipe operations and data loss

When piping operations using SoX, I've noticed that files get shorter than they should: Works fine: sox -n -r 44100 silence.wav trim 0 1 sox --combine sequence silence.wav combined.wav soxi -D ...
0
votes
1answer
2k views

How do I install SOX on UBuntu 11.0 with all format supported packages?

I tried to install SOX ( Swiss Army knife of sound processing programs ) on Ubuntu 11.10. At first, I tried with apt-get install sox, it installed successfully but it couldn't convert wav to mp3. Then ...
0
votes
0answers
2k views

sox FAIL formats: can't open input file '*.wav': Invalid argument

I am trying to familiarize myself with sox to do some audio processing tasks. Ultimately, I want to take all my WAV files and extract just one channel, and save them, ideally with a modified name (e....
1
vote
0answers
83 views

Sox not recognised as a command in W7

I just moved from xp-32bit to W7 64bit and re-installed sox which I use to resample and create spectrogams. The batch-file cd %~dp0 mkdir converted FOR %%A IN (%*) DO sox %%A -n spectrogram -o "...
50
votes
2answers
36k views

How to add a mp3 handler to sox?

I want to play music in the terminal with sox. # install sox/lame sudo apt-get install sox sudo apt-get install lame # play music play music.mp3 # play FAIL formats: no handler for file extension `...
2
votes
1answer
705 views

Recording mp3 on Windows 7 using SoX [duplicate]

I'd like to have a SoX one-liner that would record 1 hour of audio to mp3. I'm on Windows 7. Is this possible?
2
votes
0answers
92 views

SoX fails to concatenate *some* newly generated aiff files

I have a Python script that is using Mac OS X's built in speech synthesis API to create aiff files of some processed text via PyObjC/AppKit. Everything is working fine, but I can't get the aiff files ...
0
votes
1answer
793 views

Using sox low pass filter with jack

How do I run sox with jack so that sox takes the input from jack, does something (in my case, a low pass filter) and outputs the processed stream to jack. sox foo.wav bar.wav lowp 1000.0 Will take ...
3
votes
1answer
1k views

How to extract vocals from music using a command line software?

I know how to remove the vocals by using SoX. The command is sox source.wav mono.wav oops which means to mix stereo to twin-mono where each mono channel contains the difference between the left ...
2
votes
0answers
626 views

sox error on white macbook 1.1 no default audio device

I want to use a white macbook which purpose is recording sound with sox. I installed sox and lame via brew but when I want to record something in terminal sox -d ada.mp3 I got the following error ...
1
vote
1answer
2k views

issue about using sox to convert wav file with parameters changing

I want to convert a wav file(11400HZ samples rate and 2 channels) to another wav file, just changing the samples rates and channel. The command I use is : sox 1.wav -r 8000 -c 1 2.wav 1.wav can ...
1
vote
2answers
2k views

How to convert audio file of type G.723.1 into wav format?

I have few audio files which have .wav extension. I tried to get information about this file using soxi <foo.wav> command but I got following error : soxi FAIL formats: can't open input file ...
1
vote
2answers
687 views

How to run a play list with sox?

Is it possible to play a list of music files with sox? It is possible to play a file by: play song.mp3 I know I can create a batch file which includes all the files to run such as: play song01....
4
votes
1answer
4k views

How do I append a bunch of .wav files while retaining (not-zero-padded) numeric ordering?

I have many (7500) .wav files (named by their numbers) which I'd like to merge into one. I think it has to be done with a bash loop because with using globbing some files would be in the wrong order (...
0
votes
0answers
663 views

Linux - Increase volume for HD mp4 files

I am converting videos using ffmpeg. Videos are 1080p at first and I convert 1080p to h264 720p and 360p. Also if videos are 360p I`m converting them to h264 360p. The problem is when converting ...
0
votes
1answer
1k views

Can't run sox, No such file or directory

In Ubuntu 12.04 I installed sox with this command: sudo apt-get install sox Now if I use this command: sox message.wav message.flac rate 16k I get this: bash: /usr/local/bin/sox: No such file ...
0
votes
1answer
1k views

SoX Windows 7 64-Bit

Is there a version of SoX that is compatible with 64-Bit Windows 7? Whenever i try to run "sox.exe" (or any other program in 14.4.0), all that happens is that a command prompt window opens and closes,...
0
votes
1answer
363 views

sox mix nested scripts on amazon ec2 rhel linux

I'm trying to use "sox" to mix some audio files. The command works great on my Mac terminal sox -m audio.wav "| sox upload.wav -p trim 2 1 pad 6" final.wav This mixes (not concatenate) audio.wav ...
1
vote
2answers
2k views

Run SOX batch on files in a relative folder

I have a windows batch script that runs a SOX command on various files, but I don't know how to get the batch to run on files in a relative path to that of the SOX executable. Currently all the files ...
0
votes
0answers
763 views

SoX on Windows 7 64-Bit Outfile Missing

I have come across the strangest problem when trying to run sox.exe on my Windows 7 installation. Whenever I try and record audio it works without any issues but it will not output an audio file. The ...
1
vote
1answer
679 views

how to remove clipping from audio using sox?

i am looking to use -G or -v to limit a track's volume to avoid clip. sox audio1.wav -G audio2.wav or sox audio1.wav -n stat -v 1.000 sox -v 1.000 audio1.wav audio2.wav but nothing works as ...
1
vote
1answer
346 views

How to embed multiple audio files to one video file with timeline offset?

I have a video file: screencast.mpg (100sec) And several audio files(file name indicate offset): 10.wav (10sec) 30.wav (5sec) 45.wav (8sec) How can I combine those files together: V:||||||||||||...