Extract only the voiced part from a wav file?
조회 수: 4 (최근 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!