Clear Filters
Clear Filters

Find the duration of speech

4 views (last 30 days)
Elysi Cochin
Elysi Cochin on 2 Jan 2017
Answered: Image Analyst on 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?

Accepted Answer

Image Analyst
Image Analyst on 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

More Answers (0)

Categories

Find more on Simulation, Tuning, and Visualization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!