Package com.viam.component.audioin.v1
Interface Audioin.AudioChunkOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Audioin.AudioChunk,Audioin.AudioChunk.Builder
- Enclosing class:
- Audioin
public static interface Audioin.AudioChunkOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.ByteStringAudio data for this chunk, encoded according to the requested codec.Info about the audio stream for this chunklongint64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];intSequential chunk numberlongint64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];booleanInfo about the audio stream for this chunkMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getAudioData
com.google.protobuf.ByteString getAudioData()Audio data for this chunk, encoded according to the requested codec.
bytes audio_data = 1 [json_name = "audioData"];- Returns:
- The audioData.
-
hasAudioInfo
boolean hasAudioInfo()Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"];- Returns:
- Whether the audioInfo field is set.
-
getAudioInfo
Common.AudioInfo getAudioInfo()Info about the audio stream for this chunk
.viam.common.v1.AudioInfo audio_info = 2 [json_name = "audioInfo"];- Returns:
- The audioInfo.
-
getStartTimestampNanoseconds
long getStartTimestampNanoseconds()int64 start_timestamp_nanoseconds = 3 [json_name = "startTimestampNanoseconds"];- Returns:
- The startTimestampNanoseconds.
-
getEndTimestampNanoseconds
long getEndTimestampNanoseconds()int64 end_timestamp_nanoseconds = 4 [json_name = "endTimestampNanoseconds"];- Returns:
- The endTimestampNanoseconds.
-
getSequence
int getSequence()Sequential chunk number
int32 sequence = 5 [json_name = "sequence"];- Returns:
- The sequence.
-