Package net.idrnd.voicesdk.core.common
Class AudioInterval
java.lang.Object
net.idrnd.voicesdk.core.common.AudioInterval
- All Implemented Interfaces:
Comparable<AudioInterval>
Represents interval of audio data
-
Constructor Summary
ConstructorsConstructorDescriptionAudioInterval(long startSample, long endSample, long startTime, long endTime, int sampleRate) -
Method Summary
-
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
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<AudioInterval>
-