这里可以有人具有高通滤波器为PCM音频数据样本? [英] Can someone here has a sample of high pass filter for PCM audio data?

查看:435
本文介绍了这里可以有人具有高通滤波器为PCM音频数据样本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天。
我穷的DSP。我理解算法的困难。
我有一个C#应用程序,记录功能,将录制的声波
但这种声音是所有声音的混合物。具体而言,当我收到
数据我会过滤这些数据只保存过滤后的音频数据以高频率,
例如,截止频率为15kHz。
对于这种过滤器,由于是
 与大小数据的样本,
和截止频率

Good day. I am poor of DSP. I have difficulties understanding the algorithm. I have a c# application, a recorder function that will record a sound waves but this sound is a mixture of all sounds. specifically, when i receive the data i will filter this data to save only the filtered audio data with high frequency, example cutoff frequency is 15khz. For this filter, given are the samples of data with size, and the cutoff frequency

C / C ++是罚款

C/C++ is fine

在我收到的数据样本,采用高通滤波器,然后将结果保存到WAV的时间。

At the time i received that samples of data, apply highpass filter then save the result to the wav.

-thong

推荐答案

您需要知道采样率,也有你的过滤器规范的一个合理的想法之前,你可以设计一个合适的过滤器。只要指定一个15 kHz的截止是不是真的不够,例如你可能会想是这样的:

You need to know the sample rate and also have a reasonable idea of your filter specification before you can design a suitable filter. Just specifying a 15 kHz cut-off is not really enough, e.g. you might want something like this:

Sample rate: 44.1 kHz
Stop-band: < 12 kHz
Stop-band rejection: > 80 dB
Pass-band: > 15 kHz
Passband ripple: +/- 1 dB

您可以再喂这些参数到过滤器的设计包装,这会给你所有的滤波器系数等。

You can then feed these parameters into a filter design package and this will give you all the filter coefficients etc.

请注意,该过滤器的复杂性(即滤波器阶=阶段或抽头的数量)将高度依赖于过滤器规范,所以最好要使用过滤器设计包,它可以让您与规范玩耍很容易让你可以权衡您的设计要求对所需的计算带宽。

Note that the complexity of the filter (i.e. filter order = number of stages or "taps") will be highly dependent on the filter specification, so ideally you want to use a filter design package which lets you play around with the spec easily so that you can trade off your design requirements against the required compute bandwidth.

您还需要决定相位和/或群延迟是否对你很重要 - 使用线性相位FIR对于恒定群时延(更贵),或递归IIR如果相位/延迟并不重要(便宜得多实现)。

You will also need to decide whether phase and/or group delay are important to you - use a linear phase FIR for a constant group delay (more expensive) or a recursive IIR if phase/delay are not critical (much cheaper to implement).

请注意,有免费在线滤波器设计封装,例如<一href=\"http://www-users.cs.york.ac.uk/~fisher/mkfilter/\">http://www-users.cs.york.ac.uk/~fisher/mkfilter/看起来pretty好(它甚至可以为您生成一个C code滤波器实现),尽管它可能至少需要入门级信号处理方面的知识,当谈到选择过滤器类型等。

Note that there are free online filter design packages available, e.g. http://www-users.cs.york.ac.uk/~fisher/mkfilter/ looks pretty good (it can even generate a C code filter implementation for you), although it may require at least beginner-level signal-processing knowledge when it comes to selecting filter types etc.

要帮助理解基本的滤波器设计参数,这里是 http://dspguru.com 一个有用的图。注意,这是一个低通滤波器,但同样的参数适用于高通情况

To help understand basic filter design parameters, here is a useful diagram from http://dspguru.com. Note that this is for a low pass filter, but the same parameters apply in the high pass case.

这篇关于这里可以有人具有高通滤波器为PCM音频数据样本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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