使用脚本将RAW音频数据转换为WAV [英] Converting RAW audio data to WAV with scripting
本文介绍了使用脚本将RAW音频数据转换为WAV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有大量.RAW音频文件(无字节序的无符号8位PCM),我想将其转换为.WAV文件.我可以使用哪种命令行工具(Windows或Linux)来快速转换它们?
I have a large number of .RAW audio files (unsigned 8-bit PCM with no-endianness) which I want to convert to .WAV files. What command-line tool (windows or linux) can I use to convert these quickly?
推荐答案
我被指向 SoX 由一个朋友完成了.所使用的语法是
sox -r 44100 -e unsigned -b 8 -c 1 <RAW_FILE> <TARGET_FILE>
I was pointed to SoX by a friend, which did the trick. The syntax used was
sox -r 44100 -e unsigned -b 8 -c 1 <RAW_FILE> <TARGET_FILE>
这篇关于使用脚本将RAW音频数据转换为WAV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文