1 简介
语音信号在实际场合中通常容易受噪声的干扰,较强的噪声会降低语音识别的效率,为了使语音信号可懂,需要对噪声进行处理.本文先分析了语音和噪声的特性,介绍了谱减法、最小均方和维纳滤波三种语音去噪算法,以及这些算法实现的仿真结果对比。
2 部分代码
function [ss,po]=specsubm(s,fs,p)
%SPECSUBM performs speech enhancement using spectral subtraction [SS,PO]=(S,FS,P)
%
% implementation of spectral subtraction algorithm by R Martin (rather slow)
% algorithm parameters: t* in seconds, f* in Hz, k* dimensionless
% 1: tg = smoothing time constant for signal power estimate (0.04): high=reverberant, low=musical
% 2: ta = smoothing time constant for signal power estimate
% used in noise estimation (0.1)
% 3: tw = fft window length (will be rounded up to 2^nw samples)
% 4: tm = length of minimum filter (1.5): high=slow response to noise increase, low=distortion
% 5: to = time constant for oversubtraction factor (