Extract only the voiced part from a wav file?
2 次查看(过去 30 天)
显示 更早的评论
Read a wav file, i.e. a word, and then estimate only the voiced part of the file (only where there is activity). Save it in a new file and process it further.
0 个评论
回答(1 个)
KALYAN ACHARJYA
2017-11-25
%Test for Audio Extraction % Source@Stack Overflow
file='wav.AVI'; % Wav input file
file1='targetfile.wav';
hmfr= video.MultimediaFileReader(file,'AudioOutputPort',true,'VideoOutputPort',false);
hmfw = video.MultimediaFileWriter(file1,'AudioInputPort',true,'FileFormat','WAV');
while ~isDone(hmfr)
audioFrame=step(hmfr);
step(hmfw,audioFrame);
end
close(hmfw);
close(hmfr);
%end
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation, Tuning, and Visualization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!