1809 views|0 replies

3836

Posts

19

Resources
The OP
 

Speech signal 800Hz 19-point FIR low-pass filter C language floating-point program [Copy link]

#include   const int length=180/*The voice frame length is 180 points = 22.5ms@8kHz sampling*/ void filter(int xin[], int xout[], int n, float h[]);/*Filter subroutine description*/ /*19-point filter coefficients*/ static float h[19]= {0.01218354, -0.009012882, -0.02881839, -0.04743239, -0.04584568, -0.008692503, 0.06446265, 0.1544655, 0.2289794, 0.257883, 0.2289794,0.1544655,0.06446265,-0.008692503,-0.04584568, -0.04743239, -0.02881839, -0.009012882, O.01218354}; static int xl[length+20]; /*Low-pass filter floating point subroutine*/ void filter(int xin[], int xout[], int n, float h[]) { int i, j; float sum; for(i=0; i
Speech signal 800Hz 19-point FIR low-pass filter C language floating-point program


This post is from DSP and ARM Processors
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list