【发布时间】:2014-05-01 12:29:18
【问题描述】:
我想了解如何在 Web Audio API 中使用分贝
这里我有一个连接到增益节点的音频缓冲区
var mybuffer = context.createBufferSource());
mybuffer.buffer = buffer; //an audio buffer
var gainNode=context.createGain();
mybuffer.connect(gainNode);
gainNode.connect(context.destination);
增益音量是从 0(静音)到 n 的范围,其中 1 是默认音量,但据我所知,通常音频与这样的范围无关,其音量以分贝 (Db) 为单位测量,操作在Db 也是。
我在这个答案中读到了一些有趣的东西,但远远不能满足我的需要: Is there a way get something like decibel levels from an audio file and transform that information into a json array?
我想知道如何确定音频节点的分贝,如何使用分贝编辑音量
【问题讨论】:
标签: html audio html5-audio web-audio-api