sox -n output.wav synth 3 sine 440

Category: Media & Conversion

sox -n output.wav synth 3 sine 440

Generate a 3-second 440 Hz tone

Generates a 3-second 440 Hz sine tone and writes it to output.wav. The -n null input means no source audio, and synth 3 sets the duration. Change the frequency for other pitches, or use square or noise for other waveforms.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.