mary.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- function y=mary(levels,m,n)
- %m=number of symbols
- %n=samples per symbol
- l=m*n;%total sequence length
- y=zeros(1,l-n+1);%initalize output vector
- lm1=levels-1;
- x=2*fix(levels*rand(1,m))-lm1;%loop to generate info symbols
- for i=1:m
- k=(i-1)*n+1;
- y(k)=x(i);
- end
- y=conv(y,ones(1,n));%make each symbol n samples