Filter löschen
Filter löschen

Find the duration of speech

4 Ansichten (letzte 30 Tage)
Elysi Cochin
Elysi Cochin am 2 Jan. 2017
Beantwortet: Image Analyst am 2 Jan. 2017
i have a video or audio with 2 persons speaking... Is it possible to get the
1. duration of speech by person1 and person2 separately
2. duration of overlapping speech
3. duration of silence also
from the video or audio input?

Akzeptierte Antwort

Image Analyst
Image Analyst am 2 Jan. 2017
Why can't you just threshold the signal and then use regionprops() to find out where the silent regions start and stop? I know you've used regionprops() before.
[silentRegions, numRegions] = y < someThreshold;
labeledRegions = bwlabel(silentRegions);
props = regionprops(labeledRegions, 'PixelList');
for k = 1 : numRegions
fprintf('Silence region %d is between element %d and %d.\n',...
k, props(k).PixelList(1), props(k).PixelList(end));
end

Weitere Antworten (0)

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