Package io.redvox.apis
Interface RedvoxApiM.RedvoxPacketM.Sensors.AudioOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RedvoxApiM.RedvoxPacketM.Sensors.Audio,RedvoxApiM.RedvoxPacketM.Sensors.Audio.Builder
- Enclosing class:
- RedvoxApiM.RedvoxPacketM.Sensors
public static interface RedvoxApiM.RedvoxPacketM.Sensors.AudioOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsMetadata(String key) A map from string to string for including untyped metadatafloatBits of precision for normalized audio samplesThe audio encoding used...com.google.protobuf.ByteStringThe audio encoding used...doubleTimestamp of the first audio samplebooleanIf audio data has been scrambled to remove voiceDeprecated.intA map from string to string for including untyped metadataA map from string to string for including untyped metadatagetMetadataOrDefault(String key, String defaultValue) A map from string to string for including untyped metadatagetMetadataOrThrow(String key) A map from string to string for including untyped metadatafloatMicrophone sample rate in HzList of audio samplesList of audio samplesThe name or description of the audio sensorcom.google.protobuf.ByteStringThe name or description of the audio sensorbooleanList of audio samplesMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSensorDescription
String getSensorDescription()The name or description of the audio sensor
string sensor_description = 1;- Returns:
- The sensorDescription.
-
getSensorDescriptionBytes
com.google.protobuf.ByteString getSensorDescriptionBytes()The name or description of the audio sensor
string sensor_description = 1;- Returns:
- The bytes for sensorDescription.
-
getFirstSampleTimestamp
double getFirstSampleTimestamp()Timestamp of the first audio sample
double first_sample_timestamp = 2;- Returns:
- The firstSampleTimestamp.
-
getSampleRate
float getSampleRate()Microphone sample rate in Hz
float sample_rate = 3;- Returns:
- The sampleRate.
-
getBitsOfPrecision
float getBitsOfPrecision()Bits of precision for normalized audio samples
float bits_of_precision = 4;- Returns:
- The bitsOfPrecision.
-
getIsScrambled
boolean getIsScrambled()If audio data has been scrambled to remove voice
bool is_scrambled = 5;- Returns:
- The isScrambled.
-
getEncoding
String getEncoding()The audio encoding used... TODO: Turn this into an enum!
string encoding = 6;- Returns:
- The encoding.
-
getEncodingBytes
com.google.protobuf.ByteString getEncodingBytes()The audio encoding used... TODO: Turn this into an enum!
string encoding = 6;- Returns:
- The bytes for encoding.
-
hasSamples
boolean hasSamples()List of audio samples
.redvox_api_m.RedvoxPacketM.SamplePayload samples = 7;- Returns:
- Whether the samples field is set.
-
getSamples
RedvoxApiM.RedvoxPacketM.SamplePayload getSamples()List of audio samples
.redvox_api_m.RedvoxPacketM.SamplePayload samples = 7;- Returns:
- The samples.
-
getSamplesOrBuilder
RedvoxApiM.RedvoxPacketM.SamplePayloadOrBuilder getSamplesOrBuilder()List of audio samples
.redvox_api_m.RedvoxPacketM.SamplePayload samples = 7; -
getMetadataCount
int getMetadataCount()A map from string to string for including untyped metadata
map<string, string> metadata = 8; -
containsMetadata
A map from string to string for including untyped metadata
map<string, string> metadata = 8; -
getMetadata
Deprecated.UsegetMetadataMap()instead. -
getMetadataMap
A map from string to string for including untyped metadata
map<string, string> metadata = 8; -
getMetadataOrDefault
A map from string to string for including untyped metadata
map<string, string> metadata = 8; -
getMetadataOrThrow
A map from string to string for including untyped metadata
map<string, string> metadata = 8;
-