Extract only the voiced part from a wav file?

5 Ansichten (letzte 30 Tage)
Christos Loizou
Christos Loizou am 25 Nov. 2017
Beantwortet: KALYAN ACHARJYA am 25 Nov. 2017
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.

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 25 Nov. 2017
%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

Kategorien

Mehr zu Simulation, Tuning, and Visualization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by