java 解码wav_如何解码WAV / RIFF音频数据? (How to decode WAV/RIFF audio data?)

本文档旨在探讨如何使用Java解析WAV/RIFF文件中的音频数据。作者正在寻找关于如何理解音频数据块中每个字节含义的资料,特别是与振幅和频率相关的信息。虽然已经找到了有关文件头和写入字节到WAV文件的方法,但对音频数据本身的解码仍然困惑。寻求具体规范或示例来帮助分析字节,以便能够正确编写程序。同时,也欢迎提供可能简化Java中原始音频数据分析的库建议。
摘要由CSDN通过智能技术生成

2013-12-12 23:40:29

0

I'm trying to create a program to generate random audio which can be written to a WAV/RIFF file. I'm able to understand the header easily thanks to this, and I've found how to write byte data to a WAV/RIFF file here but what I can't find is anything which specifies how WAV/RIFF audio data is encoded in those bytes.

So what I'm trying to do is analyze the data (not trying to get this handed to me ;) ) to know what's going on in the bytes, thus allowing me to write my program properly. So is there anything out there that explains how to decode the audio chunk of the WAV/RIFF file to understand what's taking place in each byte (amplitude, frequencies, etc)? I understand I may be missing something here, maybe each byte isn't what I should be looking for, but again there seems to be only sparse data that I've been able to find on the topic out there.

Will be using Java for this at the moment, so if there are any implementation specific options there please let me know.

NOTE

I also found this and this which seem to be in the general area of what I'm looking for, but they still don't get there. So what I'm looking for is a specification or example that will show me how to analyze the individual bytes to see what's going on so I can learn how to write them.

EDIT

A friend suggested that I might be overthinking this, and that there may be a Java library that would make analyzing raw audio data easier in Java than doing it by byte. If so, any suggestions on this or where to look?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值