function writespeech(filename,s) % write the speech to pcm fid=fopen(filename,'w'); fwrite(fid,s,'int16'); fclose(fid) end
speech synthesis 源代码
汇集 speech synthesis 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
function s=readspeech(filename,L) % load speech from PCM fid=fopen(filename,'r'); s=fread(fid,L,'int16'); fclose(fid); end
%function speechproc() FL=80; %帧长 FL_v=2*FL; WL=240;%窗长 P=10; % the number of lpc components %s=wavread('D:\zr\matlab\corpus\…
function frq = erb2frq(erb) %ERB2FRQ Convert ERB frequency scale to Hertz FRQ=(ERB) % frq = erb2frq(erb) converts a vector of E…
function [ss,zo]=specsub(si,fsz,pp) %SPECSUB performs speech enhancement using spectral subtraction [SS,ZO]=(S,FSZ,P) % % Input…
function erb = frq2erb(frq) %FRQ2ERB Convert Hertz to ERB frequency scale ERB=(FRQ) % erb = frq2erb(frq) converts a vector of f…
% Voicebox: Speech Processing Toolbox for MATLAB % % Audio File Input/Output % readwav - Read a WAV file % writewav -…
function [lev,af,fso]=activlev(sp,fs,mode) %ACTIVLEV Measure active speech level as in ITU-T P.56 [LEV,AF,FSO]=(SP,FS,MODE) % %…
function [gci,goi] = dypsa(s,fs) %DYPSA Derive glottal closure instances from speech [gci,goi] = (s,fs) % Note: Needs to be …
/* ITU-T G.729A Speech Coder ANSI-C Source Code Version 1.1 Last modified: September 1996 Copyright (c) 1996, …