[英]How to extract the values of a .wav file
i'm trying very hard to find a simple answer to an otherwise (i believe at least) very easy question. 我正在努力寻找一个简单的答案,否则(至少我相信)非常简单的问题。 So i have let's say a .wav file of 16 bit, 44100 hz, stereo and i want to extract some of the 16 bits values from the file and see their actual values in a format that makes sense.I don't know if are signed or unsigned or float or anything else but at the end i want to have printed the value that means something.I have read that the first 44 bytes are irrelevant things so i want to have access to the values after these till the end.
因此,我假设一个16位,44100 Hz,立体声的.wav文件,我想从文件中提取一些16位值,并以有意义的格式查看其实际值。我不知道是否有符号,无符号,浮点数或其他任何东西,但最后我想打印出表示某些东西的值。我读到前44个字节是无关紧要的东西,因此我希望在这些之后直到最后都可以访问这些值。 Secondly i want simply modify a value and save it to another .wav file.These things is best to do in c or python because are the only languages that i know.
其次,我只想修改一个值并将其保存到另一个.wav文件中。这些事情最好在c或python中完成,因为这是我所知道的唯一语言。 Thank you!
谢谢!
I found a page asking almost the same question here with almost all the code written here: 我发现一个页面在这里询问几乎相同的问题,几乎所有代码都写在这里:
Extract amplitude array from a wav File using JAVA 使用JAVA从WAV文件中提取幅度阵列
:-D :-D
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.