getFcmParam.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- % Get FCM parameters from speakerData.mat
- addpath usersjangmatlabtoolboxdcpr
- centerNum = 16; % No. of centers for each speaker
- if ~exist('speakerData'),
- fprintf('Loading speakerData.mat...n');
- load speakerData.mat
- end
- tic
- fprintf('Compute FCM parameters for each speaker...n');
- for i=1:length(speakerData),
- fprintf('Computing FCM parameters for speaker %g (%s) ===> ', ...
- i, speakerData(i).speaker);
- feature = speakerData(i).feature;
- center = fcm(feature', centerNum, [nan, 1000, nan, 1]);
- speakerData(i).fcmParam = center;
- end
- fprintf('Total time = %gn', toc);
- fprintf('Saving speakerData to speakerData.mat...n');
- save speakerData speakerData