WAV文件中的实际数据是什么? [英] What's the actual data in a WAV file?

查看:326
本文介绍了WAV文件中的实际数据是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注python挑战之谜,现在我需要分析一个wav文件.我了解到有一个python模块可以读取帧,并且这些帧是16位或8位.

I'm following the python challenge riddles, and I now need to analyse a wav file. I learn there is a python module that reads the frames, and that these frames are 16bit or 8bit.

我不明白,这些位代表什么?这些值是否直接转换为施加到扬声器的电压(例如通过分解)?

What I don't understand, is what does this bits represent? Are these values directly transformed to a voltage applied to the speakers (say via factoring)?

推荐答案

这些位表示特定时间点的电波形的电压电平.

The bits represent the voltage level of an electrical waveform at a specific moment in time.

要将声波(模拟信号)的电气表示转换为数字数据,请定期采样波形,如下所示:

To convert the electrical representation of a sound wave (an analog signal) into digital data, you sample the waveform at regular intervals, like this:

每个蓝点表示一个四位数字的值,该数字代表该时间点(X轴为时间,Y轴为电压)的模拟信号高度.

Each of the blue dots indicates the value of a four-bit number that represents the height of the analog signal at that point in time (the X axis being time, and the Y axis being voltage).

在.WAV文件中,这些点由8位数字(具有256个可能的值)或16位数字(具有65536个可能的值)表示.每个数字中的位数越多,数字采样的准确性就越高.

In .WAV files, these points are represented by 8-bit numbers (having 256 different possible values) or 16 bit numbers (having 65536 different possible values). The more bits you have in each number, the greater the accuracy of your digital sampling.

这篇关于WAV文件中的实际数据是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆