Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# create 1 second 440Hz sine wave
sox -n -c 1 -r 44100 sine.wav synth 1 sine 440
# create 1 second of silence
sox -n -c 1 -r 44100 silence.wav trim 0 1
# create 1 second 440Hz sine wave followed by 1 second of silence
sox -V sine.wav silence.wav output.wav