Class SegmentCalculator

java.lang.Object
ca.phon.session.position.SegmentCalculator

public class SegmentCalculator extends Object
Used to calculate the start/end time values for various segment types.
  • Constructor Details

    • SegmentCalculator

      public SegmentCalculator()
  • Method Details

    • contiguousSegment

      public static MediaSegment contiguousSegment(Session session, int recordIndex)
      Get contiguous speech segment for speaker at given record index.
      Parameters:
      session -
      recordIndex -
    • conversationPeriod

      public static MediaSegment conversationPeriod(Session t, int recordIndex)
      Calculate conversation period from given record
      Parameters:
      t -
      recordIndex -
      Returns:
      segment for conversation period starting at given record