Questions tagged [sox]
SoX (Sound eXchange) is a computer program for audio manipulation
86
questions
0
votes
1
answer
33
views
SOX do not want name files
Want to record a radio broadcast into separated files.
receiver | sox -traw -r8k -es -b16 -c1 - -b16 -es -c1 -r48000 -t wav ~/myfolder/$(date +%H_%M_%S).wav silence 1 0.10 0.1% 1 1 0.1% : newfile : ...
2
votes
2
answers
108
views
create sine wave with sox without a gap
I am using sox for creating synth with 100ms, this is my command:
/usr/bin/sox -V -r 44100 -n -b 64 -c 1 file.wav synth 0.1 sine 200 vol -2.0dB
Now when I create 3 sine wave files and combine all ...
1
vote
0
answers
60
views
Concatenating multitrack .wav files using ffmpeg
I have 32bit .wav files with around 6 channels, segmented into chunks of 2.15GB. I want to merge the files sequentially, retaining the individual channels. I would assume something like:
ffmpeg -f ...
0
votes
1
answer
460
views
MP3 Audio file changes -- want to preserve ID3 tags and minimize quality degredation: is FLAC the best intermediate format?
I have MP3 files on which I need to perform some audio operations, then get them back to MP3. I know every operation degrades them a little bit, so my goal is just to minimize that.
I need to use both ...
1
vote
1
answer
1k
views
SoX on Windows 11 - No default audio device configured
I've installed SoX (https://sox.sourceforge.net/) in order to be able to process microphone input via node. I'm trying the most basic settings, for example, recording from the default audio device ...
0
votes
0
answers
126
views
How to solve an audio stream encoding workflow thru pipes only
I have the following workflow which is typically executed on a set of provided audio files (can be MP3 files, as assumed in this example, but also different formats):
file000.mp3
file001.mp3
...
What ...
0
votes
1
answer
72
views
Popping noise when piping audio into a vitual mic debian
I have a pipe module with the command pactl load-module module-pipe-source source_name=VirtualMic file=/tmp/virtualmic format=wav rate=44100 channels=2
I want to use SoX to play a sound file into it. ...
0
votes
1
answer
728
views
How to remove metadata or prevent adding comment "Processed by SoX" using sox?
If you convert using sox, it adds a comment to the metadata:
$ soxi audio.wav
Input File : 'audio.wav'
Channels : 1
Sample Rate : 48000
Precision : 24-bit
Duration : 00:00:04....
0
votes
1
answer
225
views
Merging two WAV files together with different durations so that the end times match
I have several pairs of wav files (obtained by recovering the audio from VoIP packet captures). I'd like to merge the two files down to a single-channel WAV file, which is easy with ffmpeg or sox. ...
1
vote
0
answers
517
views
Delay microphone input for several seconds
Using sox, I am able to record 10 seconds of mono-channel audio input:
rec -c 1 "/data/wav/${EPOCHSECONDS}.wav" trim 0 10
This works perfectly fine. However, I want the recording to contain ...
0
votes
2
answers
1k
views
How to get a random filename from a directory and using it within a command?
play ~/Music/audio0.flac repeat -
A command for playing a single specific audio file on repeat.
play ~/Music/${random_audio_file} repeat -
A pseudo command for playing a single random audio file from ...
2
votes
1
answer
1k
views
Using SoX in Python to Increase mp3 Bitrate
I am trying to increase the bitrate on an mp3 in an audio archiving program written in Python, that uses SoX.
Here's a portion of the code:
#fullHour is a boolean
DeltaSeconds = chunk['...
0
votes
1
answer
414
views
correctly batch run chain of SoX commands step by step - issues
For all .wav files in sox-14-4-2 folder I need to remove silence at start, copy the result into an existing subfolder Output, then reverse the file, remove silence again and finally reverse again.
The ...
2
votes
1
answer
446
views
Auto Batch Process - Trim, change bit rate and then normalize wav files via sox on Windows
I would like to batch process wav files in a folder:
Firstly trimming the files to 5secs and placing the trimmed files in a folder called "Trim5s", then
Changing the bit rate on the trimmed ...
0
votes
1
answer
1k
views
How to change sample rate for all files in a directory
How do I change the sample rate for every file in the folder?
I have the following code and it just erases the files -- the file size becomes 0.
for i in wav/*.wav; do
sox -r 8000 -e unsigned -b ...