Skip to content

Latest commit

 

History

History
83 lines (71 loc) · 7.03 KB

README.md

File metadata and controls

83 lines (71 loc) · 7.03 KB

maybe "sox-bible is bit of overstatement, but oh well..."

SOX BIBLE by INFU

Here you will find:

(It might not be comprehensive sox place-to-go, but surely you'll find it resourceful!)

sox is a robust command line audio studio for pretty much any kind of job - Think of it like "Text-based Audacity"!
Easily convert your audio from one format to another - no problem!
If you need extra precision, you have dozens of parameters to tweak!
While not as user-friendly or intuitive like apps with graphic interface, sox can make up for it with it's speed and precision.. if you know how to achieve it ^^;

Funny enough, sox a reason why I got into terminal/programming stuff at all!

To get most out of it, we need not only to learn sox, but also some scripting language, like Python, Bash, or Windows Batch!
Programmer or not, if you're using terminal then some Bash knowledge will do you so good!

in this article I'll stick to Bash (that's available in pretty much every Linux system, and on Windows available through "Git for Windows" / "WSL"!)

There aren't many examples online that take full advantage of all features...
Heck - some sox effects feel barely talked about even by manual itself!*
I got some links with sox guides and resources below, each containing various commands and tricks!

One example of neglected powerful features IMO is "synth"!

sox has built-in synthesizer, and while took me some time to understand it well, it was worth it as it's pretty cool!
You can generate up to 10 waveforms, mix them together in couple ways, slap some effects on them, which got me thinking...
I can create my own wavetable! if you don't know what it is, let me try explain it without nerding out about whole *"Art and History of Wavetables" XD

Wavetable is set of various tiny audio waveforms, grouped together as one small audio file:
It's like a soundfont, with plenty instruments of varied timbre each, just with total limit of 2 seconds, taking no more than half a megabyte.. Wavetables can turn your basic Sampler into fully featured Synthesizer!
I created a bunch of various helpful scripts to make those wavetables, some involve sox in some way, some others include other tools.
Enjoy!

* (Those who noticed how commands from the official documentation fail for no reason are victims or encoding issue - I've seen post about it on reddit but I lost it)

SOX LINKS

Basics

15 Awesome Examples to Manipulate Audio Files Using Sound eXchange (SoX)
Convert audio files with this versatile Linux command | Opensource.com
03 – Using the command line to process audio – sound design media
sox cheat sheet · GitHub
Quality sox articles
https://wiki.linuxquestions.org/wiki/Sox
explainshell.com - sox flag explanation
Audio Analysis, Synthesis, Manipulation
Using sox (Multiple basics)

Basics: youtube videos

Easy Audio Processing with SoX! - YouTube
Using the SOX audio manipulation command to process audio files - YouTube
Sound Effects Batch Sort and Rename Script using SoX - YouTube

Particular

Generating (and Saving) Tones with SoX – Montessori Muddle
Bash Script For An Oscilloscope… « Bash recipes « ActiveState Code
HOWTO: SoX audio tool as a signal generator | Audio Science Review (ASR) Forum
sox – We Saw a Chicken …
SOX audio examples - www.ReeltoReel.nl Wiki
Sox in phonetic research - Phonlab
command line - Generate white noise to calm a baby - Ask Ubuntu
CMU Sphinx - Speech Recognition · GitHub

Scripts using SOX

ChaosCode/all2wav16bit.sh at main · INFU-AV/ChaosCode · GitHub
sox-tricks/README.md at master · madskjeldgaard/sox-tricks · GitHub
GitHub - coderofsalvation/soxmasterhouse: automatically mastering of audio using sox/ladspa/vst
GitHub - jaimesBooth/SoXBatchBASH: BASH script to batch convert audio files down to 44.1 kHz, 16 bit using SoX's very high quality sample rate converter.
GitHub - JakeWorrell/Glitch-Cutter: A little php script that uses SOX to randomly grab small bits of audio files and put them into new files. Perfect for making a bit of a racket in something like Renoise
multi-core workouts: Plot a wav file - wav2png
GitHub - jobbautista9/SoxMusicGen: Easy music generation with SoX and Perl 5
CMU Sphinx - Speech Recognition · GitHub

Songmaking

"synth.sh", official sox song example
GitHub - enkiv2/clisynth: A set of shell functions for simplifying music composition with sox

Unconventional

GUI GitHub - prof-spock/SoX-Plugins: Reimplementation of the SoX Command-Line Audio Processor as DAW Plugins
memcpy.io | Audio editing images
Sockbend
GitHub - Roachbones/sockbend: Python scripts for databending images by editing them as audio data using SoX.