0

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?

bob mcgrath
  • 61
  • 1
  • 8

2 Answers2

1

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

bob mcgrath
  • 61
  • 1
  • 8
0

If you want to change the audio rate, you can do it this way with ffmpeg:

ffmpeg -i input.wav -ar 32000 output.wav
szpal
  • 647
  • 9
  • 27