我如何使用 Opus 编码语音文件

与单声道 WAV 文件相比,这节省了约 90% 的空间:

encode_speech_opus.sh
ffmpeg -i <input> -c:a libopus -vbr on -compression_level 10 -frame_duration 60 <output>

对于许多典型语音文件,将产生大约 100kBit/s 的比特率。

为了使其更小,使用

encode_speech_opus_low_bitrate.sh
ffmpeg -i <input> -c:a libopus -b:a 24K -frame_duration 60 <output>

对于典型语音(没有太多音乐),这仍然是高质量,你只会在直接比较中注意到差异。在典型的 1.1GB 播客文件中,它产生的文件大小为原始 WAV 的 0.512%。


Check out similar posts by category: Linux