亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? echo.h

?? 傳真通信V27 V29 V17 T38解調與解碼
?? H
字號:
/* * SpanDSP - a series of DSP components for telephony * * echo.h - An echo cancellor, suitable for electrical and acoustic *	    cancellation. This code does not currently comply with *	    any relevant standards (e.g. G.164/5/7/8). * * Written by Steve Underwood <steveu@coppice.org> * * Copyright (C) 2001 Steve Underwood * * Based on a bit from here, a bit from there, eye of toad, * ear of bat, etc - plus, of course, my own 2 cents. * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: echo.h,v 1.10 2007/04/05 19:20:49 steveu Exp $ *//*! \file */#if !defined(_SPANDSP_ECHO_H_)#define _SPANDSP_ECHO_H_/*! \page echo_can_page Line echo cancellation for voice\section echo_can_page_sec_1 What does it do?This module aims to provide G.168-2002 compliant echo cancellation, to removeelectrical echoes (e.g. from 2-4 wire hybrids) from voice calls.\section echo_can_page_sec_2 How does it work?The heart of the echo cancellor is FIR filter. This is adapted to match the echoimpulse response of the telephone line. It must be long enough to adequately coverthe duration of that impulse response. The signal transmitted to the telephone lineis passed through the FIR filter. Once the FIR is properly adapted, the resultingoutput is an estimate of the echo signal received from the line. This is subtractedfrom the received signal. The result is an estimate of the signal which originatedat the far end of the line, free from echos of our own transmitted signal. The least mean squares (LMS) algorithm is attributed to Widrow and Hoff, and wasintroduced in 1960. It is the commonest form of filter adaption used in thingslike modem line equalisers and line echo cancellers. There it works very well.However, it only works well for signals of constant amplitude. It works very poorlyfor things like speech echo cancellation, where the signal level varies widely.This is quite easy to fix. If the signal level is normalised - similar to applyingAGC - LMS can work as well for a signal of varying amplitude as it does for a modemsignal. This normalised least mean squares (NLMS) algorithm is the commonest one usedfor speech echo cancellation. Many other algorithms exist - e.g. RLS (essentiallythe same as Kalman filtering), FAP, etc. Some perform significantly better than NLMS.However, factors such as computational complexity and patents favour the use of NLMS.A simple refinement to NLMS can improve its performance with speech. NLMS tendsto adapt best to the strongest parts of a signal. If the signal is white noise,the NLMS algorithm works very well. However, speech has more low frequency thanhigh frequency content. Pre-whitening (i.e. filtering the signal to flattenits spectrum) the echo signal improves the adapt rate for speech, and ensures thefinal residual signal is not heavily biased towards high frequencies. A very lowcomplexity filter is adequate for this, so pre-whitening adds little to thecompute requirements of the echo canceller.An FIR filter adapted using pre-whitened NLMS performs well, provided certainconditions are met:     - The transmitted signal has poor self-correlation.    - There is no signal being generated within the environment being cancelled.The difficulty is that neither of these can be guaranteed.If the adaption is performed while transmitting noise (or something fairly noiselike, such as voice) the adaption works very well. If the adaption is performedwhile transmitting something highly correlative (typically narrow band energysuch as signalling tones or DTMF), the adaption can go seriously wrong. The reasonis there is only one solution for the adaption on a near random signal - the impulseresponse of the line. For a repetitive signal, there are any number of solutionswhich converge the adaption, and nothing guides the adaption to choose the generalisedone. Allowing an untrained canceller to converge on this kind of narrowbandenergy probably a good thing, since at least it cancels the tones. Allowing a wellconverged canceller to continue converging on such energy is just a way to ruinits generalised adaption. A narrowband detector is needed, so adapation can besuspended at appropriate times.The adaption process is based on trying to eliminate the received signal. Whenthere is any signal from within the environment being cancelled it may upset theadaption process. Similarly, if the signal we are transmitting is small, noisemay dominate and disturb the adaption process. If we can ensure that theadaption is only performed when we are transmitting a significant signal level,and the environment is not, things will be OK. Clearly, it is easy to tell whenwe are sending a significant signal. Telling, if the environment is generating asignificant signal, and doing it with sufficient speed that the adaption willnot have diverged too much more we stop it, is a little harder. The key problem in detecting when the environment is sourcing significant energyis that we must do this very quickly. Given a reasonably long sample of thereceived signal, there are a number of strategies which may be used to assesswhether that signal contains a strong far end component. However, by the timethat assessment is complete the far end signal will have already caused majormis-convergence in the adaption process. An assessment algorithm is needed whichproduces a fairly accurate result from a very short burst of far end energy. \section echo_can_page_sec_3 How do I use it?The echo cancellor processes both the transmit and receive streams sample bysample. The processing function is not declared inline. Unfortunately,cancellation requires many operations per sample, so the call overhead is only aminor burden. */#include "fir.h"#define NONUPDATE_DWELL_TIME	600 	/* 600 samples, or 75ms *//* Mask bits for the adaption mode */#define ECHO_CAN_USE_NLP            0x01#define ECHO_CAN_USE_SUPPRESSOR     0x02#define ECHO_CAN_USE_CNG            0x04#define ECHO_CAN_USE_ADAPTION       0x08/*!    G.168 echo canceller descriptor. This defines the working state for a line    echo canceller.*/typedef struct{    int tx_power[4];    int rx_power[3];    int clean_rx_power;    int rx_power_threshold;    int nonupdate_dwell;    fir16_state_t fir_state;    /*! Echo FIR taps (16 bit version) */    int16_t *fir_taps16[4];    /*! Echo FIR taps (32 bit version) */    int32_t *fir_taps32;    int curr_pos;	    int taps;    int tap_mask;    int adaption_mode;        int32_t supp_test1;    int32_t supp_test2;    int32_t supp1;    int32_t supp2;    int vad;    int cng;    /* Parameters for the Hoth noise generator */    int cng_level;    int cng_rndnum;    int cng_filter;        int16_t geigel_max;    int geigel_lag;    int dtd_onset;    int tap_set;    int tap_rotate_counter;    int32_t latest_correction;  /* Indication of the magnitude of the latest                                   adaption, or a code to indicate why adaption                                   was skipped, for test purposes */    int32_t last_acf[28];    int narrowband_count;    int narrowband_score;} echo_can_state_t;/*! Create a voice echo canceller context.    \param len The length of the canceller, in samples.    \return The new canceller context, or NULL if the canceller could not be created.*/echo_can_state_t *echo_can_create(int len, int adaption_mode);/*! Free a voice echo canceller context.    \param ec The echo canceller context.*/void echo_can_free(echo_can_state_t *ec);/*! Flush (reinitialise) a voice echo canceller context.    \param ec The echo canceller context.*/void echo_can_flush(echo_can_state_t *ec);/*! Set the adaption mode of a voice echo canceller context.    \param ec The echo canceller context.    \param adapt The mode.*/void echo_can_adaption_mode(echo_can_state_t *ec, int adaption_mode);/*! Process a sample through a voice echo canceller.    \param ec The echo canceller context.    \param tx The transmitted audio sample.    \param rx The received audio sample.    \return The clean (echo cancelled) received sample.*/int16_t echo_can_update(echo_can_state_t *ec, int16_t tx, int16_t rx);#endif/*- End of file ------------------------------------------------------------*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品t66y| 欧美一区二区女人| 国产福利一区二区三区| 裸体一区二区三区| 日韩精品成人一区二区三区 | 日韩1区2区日韩1区2区| 亚洲激情自拍偷拍| 午夜精品福利一区二区蜜股av| 一区二区三区四区亚洲| 亚洲综合网站在线观看| 亚洲国产wwwccc36天堂| 日韩一区欧美二区| 秋霞电影一区二区| 国产一区欧美日韩| 99久久精品国产一区二区三区| 91免费精品国自产拍在线不卡| 一本色道久久加勒比精品 | 天堂蜜桃一区二区三区 | 国产综合色在线视频区| 国产呦精品一区二区三区网站| 粉嫩在线一区二区三区视频| www.99精品| 欧美人与z0zoxxxx视频| 欧美tickling挠脚心丨vk| 国产日韩欧美电影| 亚洲中国最大av网站| 免费人成在线不卡| 成人av在线播放网站| 欧美亚洲综合在线| 久久久久一区二区三区四区| 中文字幕日韩一区二区| 天天亚洲美女在线视频| 国产盗摄一区二区| 欧美在线观看一区二区| 久久久久久久综合狠狠综合| 日韩伦理av电影| 男女性色大片免费观看一区二区| 国产盗摄精品一区二区三区在线| 91麻豆swag| 精品捆绑美女sm三区| 亚洲精品乱码久久久久| 国产麻豆精品视频| 欧美日韩免费视频| 国产精品天干天干在线综合| 亚洲亚洲人成综合网络| 国产成人a级片| 日韩美女一区二区三区四区| 亚洲人成网站影音先锋播放| 韩国v欧美v亚洲v日本v| 欧美日韩国产小视频| 中文字幕视频一区二区三区久| 蜜臀av一级做a爰片久久| 在线观看一区二区视频| 国产欧美日韩视频在线观看| 日日噜噜夜夜狠狠视频欧美人 | 亚洲色图欧美偷拍| 国产在线一区二区综合免费视频| 欧美专区亚洲专区| 亚洲精品五月天| 99精品黄色片免费大全| 亚洲精品一区二区三区99| 日韩av一区二| 666欧美在线视频| 午夜精品在线看| 91久久线看在观草草青青| 国产精品三级av在线播放| 激情深爱一区二区| 精品日产卡一卡二卡麻豆| 日韩激情一区二区| 7777精品伊人久久久大香线蕉最新版| 一区二区三区四区乱视频| 99精品国产热久久91蜜凸| 国产精品美女久久久久aⅴ国产馆| 国内精品视频666| 久久蜜臀中文字幕| 国产高清精品在线| 国产精品动漫网站| 99精品偷自拍| 一区二区三区日韩欧美精品 | 欧美日韩国产另类一区| 伊人婷婷欧美激情| 欧美三级日韩在线| 日韩主播视频在线| 欧美mv日韩mv国产网站| 国产一区二区三区在线看麻豆| www久久精品| 成人午夜视频在线| 综合久久久久久| 精品视频资源站| 青青草97国产精品免费观看 | 国产福利一区二区三区在线视频| 久久精品人人做人人爽人人| 国产成人无遮挡在线视频| 亚洲国产精品传媒在线观看| 91首页免费视频| 亚洲一本大道在线| 日韩精品一区二区三区老鸭窝| 激情国产一区二区| 国产精品乱码久久久久久| 欧美综合久久久| 另类小说色综合网站| 久久久久久久久伊人| 色婷婷亚洲一区二区三区| 奇米影视7777精品一区二区| 国产免费成人在线视频| 色欧美乱欧美15图片| 久久精品国产在热久久| 国产欧美视频在线观看| 在线观看一区二区精品视频| 六月丁香婷婷久久| 一区二区三区中文字幕精品精品| 91精品国产色综合久久不卡电影 | 亚洲男人天堂一区| 精品国产制服丝袜高跟| 福利一区二区在线| 午夜国产精品影院在线观看| 国产校园另类小说区| 在线观看免费一区| 国产精品18久久久久久vr| 一区二区三区成人| 欧美韩日一区二区三区| 欧美精品乱人伦久久久久久| 国产高清一区日本| 日本美女一区二区三区视频| 亚洲人亚洲人成电影网站色| 精品精品国产高清a毛片牛牛| 色老汉一区二区三区| 国产v综合v亚洲欧| 久久99久国产精品黄毛片色诱| 亚洲黄色性网站| 国产精品每日更新在线播放网址| 欧美一级在线免费| 欧美日韩在线观看一区二区| 99精品视频一区二区三区| 狠狠久久亚洲欧美| 免费日本视频一区| 亚洲一二三级电影| 一区二区三区四区五区视频在线观看| 国产偷国产偷亚洲高清人白洁| 欧美日韩一二区| 91成人在线精品| 99精品偷自拍| 91丨九色porny丨蝌蚪| 成人a级免费电影| 成人丝袜18视频在线观看| 久久99国产精品免费| 日韩av成人高清| 亚洲成av人片在线| 亚洲国产精品欧美一二99| 一区二区三区免费| 一区二区高清免费观看影视大全| 中文字幕一区二区视频| 亚洲五码中文字幕| 亚洲女子a中天字幕| 亚洲黄色免费电影| 一区二区日韩av| 亚洲香肠在线观看| 日韩在线一二三区| 日本不卡一二三| 精品亚洲国内自在自线福利| 精品一区二区三区免费毛片爱| 蜜臀久久久久久久| 国产乱码一区二区三区| 国产a区久久久| 97se亚洲国产综合自在线观| av激情亚洲男人天堂| 91国产免费观看| 欧美优质美女网站| 欧美一区二区免费观在线| 日韩午夜激情视频| 久久久精品综合| 国产精品毛片a∨一区二区三区| 亚洲欧洲av另类| 香蕉久久一区二区不卡无毒影院| 美女视频免费一区| 成人在线一区二区三区| 日本高清视频一区二区| 欧美一区二区福利视频| 久久久久久久久久美女| 一区二区三区中文在线| 麻豆精品蜜桃视频网站| 不卡一区二区三区四区| 欧美日韩一区在线| 久久看人人爽人人| 亚洲一区二区在线视频| 精品一区二区日韩| 91在线视频免费91| 日韩精品一区二区三区在线观看 | 男女激情视频一区| 国产一区二区三区久久久 | 国产日韩欧美激情| 亚洲福利一二三区| 国产成人亚洲精品狼色在线| 欧洲在线/亚洲| 亚洲综合在线免费观看| 美国毛片一区二区三区| 91在线国内视频| 久久久久久久久久久久久久久99| 综合色中文字幕| 高清成人在线观看|