Class AudioInterval

java.lang.Object
net.idrnd.voicesdk.core.common.AudioInterval
All Implemented Interfaces:
Comparable<AudioInterval>

public class AudioInterval extends Object implements Comparable<AudioInterval>
Represents interval of audio data
  • Constructor Details

    • AudioInterval

      public AudioInterval(long startSample, long endSample, long startTime, long endTime, int sampleRate)
  • Method Details

    • getStartSample

      public long getStartSample()
      Returns:
      Sample number of where interval starts
    • getEndSample

      public long getEndSample()
      Returns:
      Sample number of where interval ends (not inclusive)
    • getStartTime

      public long getStartTime()
      Returns:
      Timestamp in milliseconds of where interval starts
    • getEndTime

      public long getEndTime()
      Returns:
      Timestamp in milliseconds of where interval ends (not inclusive)
    • getSampleRate

      public long getSampleRate()
      Returns:
      Sample rate of corresponding audio
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(AudioInterval o)
      Specified by:
      compareTo in interface Comparable<AudioInterval>