Package com.viam.common.v1
Interface Common.AudioInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Common.AudioInfo,Common.AudioInfo.Builder
- Enclosing class:
- Common
public static interface Common.AudioInfoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetCodec()Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")com.google.protobuf.ByteStringAudio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")intNumber of audio channels in the recording or playbackintSample rate of the audio in HzMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getCodec
String getCodec()Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
string codec = 1 [json_name = "codec"];- Returns:
- The codec.
-
getCodecBytes
com.google.protobuf.ByteString getCodecBytes()Audio codec used for the stream or device (e.g., "pcm16", "pcm32float", "mp3")
string codec = 1 [json_name = "codec"];- Returns:
- The bytes for codec.
-
getSampleRateHz
int getSampleRateHz()Sample rate of the audio in Hz
int32 sample_rate_hz = 2 [json_name = "sampleRateHz"];- Returns:
- The sampleRateHz.
-
getNumChannels
int getNumChannels()Number of audio channels in the recording or playback
int32 num_channels = 3 [json_name = "numChannels"];- Returns:
- The numChannels.
-