资源简介

语音增强结果评价框架,其中包括四种语音质量评价方法:信噪比SNR,分段信噪比segSNR,对数谱失真LSD,PESQ。还包括生成设定信噪比语音文件的m文件。也适用于其他领域的语音质量评价

资源截图

代码片段和文件信息

%% 加噪声,调整输入信噪比,得到带噪语音
fs=8000;frame=512;fstep=128;
    pathstr=‘d:/‘;
    str1=‘libo*.wav‘;
    filelist = dir([pathstr filesep str1]);
    fileNames = {filelist.name};
    file_len=length(fileNames);
    a=0.3;
    for j=1:file_len
        IN_SNR=-1000000;
        fin0=fileNames{j};
        fin=[pathstr filesep fin0];
        clean=wavread(fin);
        le=length(clean);
        noi=noi_source(1:le);
%%设定希望输出信噪比的范围
        low=14;  %最低值
        hig=14.5;%最高值
       
        while IN_SNR>hig || IN_SNR            if IN_SNR>hig
                a=a+0.001;
            elseif IN_SNR                a=a-0.001;
            end
        noi2=noi*a;                     %后面的整数代表噪声的含量
        noisy=clean+noi2;               % 带噪语音生成
        [IN_SNRSNROIN_segSNRsegSNROIN_LSDLSDOIN_PESQPESQ_O]=res_eva(cleannoi2noisyfsframefstep);%%这里可以简化一下,只算信噪比即可
        end
        sn=strrep(num2str(IN_SNR3)‘.‘‘-‘);
        fout0=strrep(fin0‘.wav‘[‘_white_‘ sn ‘db‘]);
        fout=[‘d:/‘ fout0];
        wavwrite(noisyfsfout);
    end
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-05-18 20:09  res_eva\
     目录           0  2012-05-18 19:59  res_eva\eva_composite\
     文件        3227  2008-06-30 14:19  res_eva\eva_composite\apply_filter.p
     文件        1244  2008-06-30 14:19  res_eva\eva_composite\apply_filters.p
     文件        9896  2008-06-30 14:19  res_eva\eva_composite\apply_VAD.p
     文件       32998  2008-06-30 14:19  res_eva\eva_composite\batch_pesq.p
     文件        2770  2008-06-30 14:19  res_eva\eva_composite\batch_pesq2.p
     文件       20576  2006-09-18 10:25  res_eva\eva_composite\composite.asv
     文件       21070  2008-06-30 14:22  res_eva\eva_composite\composite.m
     文件        1842  2008-06-30 14:19  res_eva\eva_composite\convolution_in_timealign.p
     文件        5174  2008-06-30 14:19  res_eva\eva_composite\crude_align.p
     文件        2315  2008-06-30 14:19  res_eva\eva_composite\DC_block.p
     文件       47724  2006-07-30 19:40  res_eva\eva_composite\enhanced_logmmse.wav
     文件         392  2010-08-09 18:09  res_eva\eva_composite\FFTNXCorr.p
     文件        2274  2008-06-30 14:19  res_eva\eva_composite\fix_power_level.p
     文件        3011  2008-06-30 14:19  res_eva\eva_composite\id_searchwindows.p
     文件         622  2010-08-23 17:49  res_eva\eva_composite\id_utterances.p
     文件         651  2008-06-30 14:19  res_eva\eva_composite\input_filter.p
     文件        5787  2008-06-30 14:19  res_eva\eva_composite\pesq.p
     文件       11850  2008-06-30 14:19  res_eva\eva_composite\pesq_debug.p
     文件        6539  2008-06-30 14:19  res_eva\eva_composite\pesq_measure.p
     文件        4581  2008-11-10 12:56  res_eva\eva_composite\pesq_psychoacoustic_model.p
     文件        2341  2008-06-30 14:19  res_eva\eva_composite\pesq_testbench.p
     文件        8102  2008-06-30 14:19  res_eva\eva_composite\plot_wav.p
     文件         553  2008-06-30 14:19  res_eva\eva_composite\pow_of.p
     文件        7277  2009-07-31 10:13  res_eva\eva_composite\readme.pdf
     文件        2029  2009-07-31 10:13  res_eva\eva_composite\readme.txt
     文件       13971  2008-06-30 14:19  res_eva\eva_composite\setup_global.p
     文件       48198  2006-09-18 10:56  res_eva\eva_composite\sp09.wav
     文件       48198  2006-07-30 19:40  res_eva\eva_composite\sp09_babble_sn10.wav
     文件       21078  2008-06-30 14:19  res_eva\eva_composite\split_align.p
............此处省略10个文件信息

评论

共有 条评论