Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果您能告诉我如何将 byte[] 保存到 wav 文件,那就太好了。有时我需要设置不同的采样率、位数和通道。
谢谢你的帮助。
您必须设置 wav 标头数据,其中包含有关采样率、文件大小、采样大小、立体声或单声道等信息。然后写入实际的音频数据。然后你只需要把它写成一个带有“.wav”文件扩展名的二进制文件。