我想在影片剪辑中进行说话者识别以及人脸识别,还需要进行语音和人脸识别。我无法在MATLAB 7.10 R2010a中读取.avi文件中的音频文件。谁能帮我?
试试这个(从这里开始):
file = 'filename.avi'
file1 = 'audiofile.wav'
hmfr=video.MultimediaFileReader(file,'AudioOutputPort',true,'VideoOutputPort',false);
hmfw = video.MultimediaFileWriter(file1,'AudioInputPort',true,'VideoInputPort',false,'FileFormat','WAV');
while ~isDone(hmfr)
audioFrame = step(hmfr);
step(hmfw,audioFrame);
end
close(hmfw);
close(hmfr);
audio_samples = wavread(file1);
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句