Record Class TimedAudioFrame
java.lang.Object
java.lang.Record
fr.dreamin.dreamvoice.api.recording.model.TimedAudioFrame
- Record Components:
timestampMs- millisecond offset from the start of the recordingdata- raw Opus audio frame bytes
Record representing a timestamped Opus audio frame.
-
Constructor Summary
ConstructorsConstructorDescriptionTimedAudioFrame(long timestampMs, byte[] data) Creates an instance of aTimedAudioFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thetimestampMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimedAudioFrame
public TimedAudioFrame(long timestampMs, byte[] data) Creates an instance of aTimedAudioFramerecord class.- Parameters:
timestampMs- the value for thetimestampMsrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
timestampMs
public long timestampMs()Returns the value of thetimestampMsrecord component.- Returns:
- the value of the
timestampMsrecord component
-
data
-