mfcc特征参数提取后怎么实现语音识别
发布网友
发布时间:2022-05-07 00:14
我来回答
共1个回答
热心网友
时间:2023-10-09 07:50
1、用audioread('');函数读取电脑音频文件参数音频文件路径:
[sampledata,FS] = audioread('F:1.mp3');
sampledata保存音频信号数据FS音频采率MP3格式采率般44100;
2、判断音频数据否双声道双声道则保留声道数据用calsample.m文件函数完功能文件内容:
function sample = calsample(sampledata,FS)
temp_sample = resample(sampledata,1,FS/11025);
[m,n] = size(temp_sample);
if (n == 2)
sample = temp_sample(:,1);
else
sample = temp_sample;
end
end