Package ca.phon.session.position
Class SegmentCalculator
java.lang.Object
ca.phon.session.position.SegmentCalculator
Used to calculate the start/end time values for
various segment types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MediaSegment
contiguousSegment
(Session session, int recordIndex) Get contiguous speech segment for speaker at given record index.static MediaSegment
conversationPeriod
(Session t, int recordIndex) Calculate conversation period from given record
-
Constructor Details
-
SegmentCalculator
public SegmentCalculator()
-
-
Method Details
-
contiguousSegment
Get contiguous speech segment for speaker at given record index.- Parameters:
session
-recordIndex
-
-
conversationPeriod
Calculate conversation period from given record- Parameters:
t
-recordIndex
-- Returns:
- segment for conversation period starting at given record
-