Skip to content

Instantly share code, notes, and snippets.

@vector4wang
Last active July 26, 2019 02:42
Show Gist options
  • Save vector4wang/3663f709eb5a85b1f07d673c61f453b0 to your computer and use it in GitHub Desktop.
Save vector4wang/3663f709eb5a85b1f07d673c61f453b0 to your computer and use it in GitHub Desktop.
[ffmpeg 常用命令] #ffmpeg

将wav音频文件转化为16k Hz 单通道的文件

ffmpeg -i original.wav -ac 1 -ar 16000 new.wav

批量操作

for  %i in (*.wav) do (ffmpeg.exe -i %i -ac 1 -ar 16000 "D:\company\weiwei\语音识别技术测试报告\61个语音样本及语音识别结果\16k样本\%i")

注意:最好在当前目录下执行,因为%i是全路径名,后面再设置路径的时候会出错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment