图形振幅 [英] graphing amplitude

查看:228
本文介绍了图形振幅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果有人可以点我一个很好的教程或告诉我如何从一个字节数组图表幅度。我使用的音频格式为:u律8000.0赫兹,8位,单声道,1个字节/帧

I was wondering if someone could point me to a good tutorial or show me how to graph the amplitude from a byte array. The audio format I am using is: U LAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame.

推荐答案

这听起来像你有兴趣在短期内平滑RMS幅度测量。平时要做到这一点,你需要输入信号的整流版本,然后申请一个低通滤波器,这一点,例如。

It sounds like you are interested in a short term smoothed RMS amplitude measurement. Usually to do this you take a rectified version of the input signal, and then apply a low pass filter to this, e.g.

x1 = abs(x); // x2 = rectified input signal
x2 = k * x2 + (1 - k) * x1; // simple single pole low pass recursive filter

X2是信号x的幅度。 k是因子下; 1.0这就决定了平滑滤波器的时间常数。

x2 is the amplitude of the signal x. k is a factor < 1.0 which determines the time constant of the smoothing filter.

您届时将有某种形式的阈值,你用它来决定你是在沉默中( X2&LT;阈值)或语音( X2方式&gt; =阈值

You will then have some kind of threshold value which you use to decide whether you are in silence (x2 < threshold) or speech (x2 >= threshold).

这篇关于图形振幅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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