linuxaudioalsasoxi2s

Change audio format without changing audio from the command line


I have some audio recorded form an i2s mic at 16000hz with arecord. It sounds like it is down an octave so I want to change the file format to 32000hz. When I try to do this with sox it edits the audio, not just the format so it still sounds wrong.

This is the sox command I am using: sox in.wav -r 32000 out.wav What command should I use instead?


Solution

  • Looks like order matters in the command. The correct command is: sox -r 32000 in.wav out.wav