The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
3 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
7 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 ...
0
votes
1answer
13 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
101 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 ...
1
vote
0answers
53 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
53 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 ...
0
votes
0answers
81 views

Mix 2 audio files and adjust volume

I am trying to mix two wave files background.wav (10 sec) and message.wav (5 sec). I want the volume of background.wav to reduce to 0.5 when message.wav is playing, so that the message is clearly ...
0
votes
1answer
79 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
2answers
445 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 ...
0
votes
0answers
61 views

Required alaw to mp3/wav convetion format in sox for ubuntu

when i try encode from a-law to wave i am getting below error sox FAIL formats: no handler for file extension `alaw' sox -t -r 8000 -e a-law -b 8 -c 1 inputfile.alaw output.wav i am using ubuntu
0
votes
0answers
61 views

How do I silence part of an audio file using sox?

I have recordings that should have sections of 30 seconds (or so) excluded from the file. Currently, we just trim those sections out: sox -V1 file.wav -e signed-integer -r 8000 -c 2 -t wav temp.wav ...
0
votes
1answer
746 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 ...
0
votes
0answers
46 views

can sox (sound exchange) remove repeated short period sound (not noise) from a track

For example, the 01.mp3 contains several dog barking which is very short at different point, and the dog barking isn't noise. I've tried the noise prof and filter, but it does't work. sox dog.wav ...
1
vote
1answer
118 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
100 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 ...
2
votes
1answer
106 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
325 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
0answers
860 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 ...
1
vote
0answers
70 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 ...
2
votes
1answer
100 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 ...
1
vote
1answer
474 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
78 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
2answers
454 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
569 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 ...
2
votes
1answer
675 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
460 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
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
1answer
1k 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
0answers
544 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 ...
2
votes
1answer
2k 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
528 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
764 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
3k 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
407 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 ...
2
votes
1answer
606 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 ...
3
votes
3answers
2k 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
2answers
1k 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
657 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 ...
2
votes
2answers
1k 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 ...
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 ...
1
vote
1answer
332 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
521 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 ...
34
votes
2answers
25k 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 ...
0
votes
1answer
313 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
1answer
331 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: ...
2
votes
1answer
230 views

Specify audio channel to write to monaural file using SoX

I am interested in using SoX as part of a transcoding workflow I'm building. I need to be able to downmix stereo audio streams to mono. More specifically, I need to be able to specify which channel to ...
8
votes
1answer
9k 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 ...
3
votes
3answers
4k 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
2answers
582 views

How to trim the first 10 seconds from a batch of mp3?

This was asked before, Mass MP3 audio file editor, but I'm wondering if things have changed by now. I'm also ok with any solution that works for any OS, and even CLI. ffmpeg doesn't do the trick (the ...