linux下用sox音频处理常用方法

一 sox可以给pcm文件加头

  方法:sox -t raw -c 1 -e signed-integer -b 16 -r 16000 test.pcm test.wav

二 修改采样率:

 方法: sox   test.wav   -r   8000  test-8K.wav

三 四种常用方式:

  • sox 音频格式转换
  • soxi 音频格式信息查询
  • play 播放音频文件
  • rec 录制音频文件
原文地址:https://www.cnblogs.com/dylancao/p/11137822.html