viam.gen.component.audioinput.v1.audioinput_pb2
@generated by mypy-protobuf. Do not edit manually! isort:skip_file
Attributes
Classes
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
|
Abstract base class for protocol messages. |
Module Contents
- viam.gen.component.audioinput.v1.audioinput_pb2.DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
- class viam.gen.component.audioinput.v1.audioinput_pb2.SampleFormat
Bases:
_SampleFormat
- viam.gen.component.audioinput.v1.audioinput_pb2.SAMPLE_FORMAT_UNSPECIFIED: SampleFormat
- viam.gen.component.audioinput.v1.audioinput_pb2.SAMPLE_FORMAT_INT16_INTERLEAVED: SampleFormat
- viam.gen.component.audioinput.v1.audioinput_pb2.SAMPLE_FORMAT_FLOAT32_INTERLEAVED: SampleFormat
- viam.gen.component.audioinput.v1.audioinput_pb2.global___SampleFormat
- class viam.gen.component.audioinput.v1.audioinput_pb2.RecordRequest(*, name: str = ..., duration: google.protobuf.duration_pb2.Duration | None = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
Name of an audio input
- property duration: google.protobuf.duration_pb2.Duration
- HasField(field_name: Literal['duration', b'duration']) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueError
will be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- viam.gen.component.audioinput.v1.audioinput_pb2.global___RecordRequest
- class viam.gen.component.audioinput.v1.audioinput_pb2.AudioChunkInfo(*, sample_format: global___SampleFormat = ..., channels: int = ..., sampling_rate: int = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- sample_format: global___SampleFormat
Actual sample encoding format of the response
- channels: int
- sampling_rate: int
- viam.gen.component.audioinput.v1.audioinput_pb2.global___AudioChunkInfo
- class viam.gen.component.audioinput.v1.audioinput_pb2.AudioChunk(*, data: bytes = ..., length: int = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- data: bytes
Data is PCM data that is organized according to the sample format along with its possible interleaving. Data in each format is Little Endian.
- length: int
Length is the number of samples
- viam.gen.component.audioinput.v1.audioinput_pb2.global___AudioChunk
- class viam.gen.component.audioinput.v1.audioinput_pb2.ChunksRequest(*, name: str = ..., sample_format: global___SampleFormat = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
Name of an audio input
- sample_format: global___SampleFormat
Requested sample encoding format of the response
- viam.gen.component.audioinput.v1.audioinput_pb2.global___ChunksRequest
- class viam.gen.component.audioinput.v1.audioinput_pb2.ChunksResponse(*, info: global___AudioChunkInfo | None = ..., chunk: global___AudioChunk | None = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- property info: global___AudioChunkInfo
- property chunk: global___AudioChunk
- HasField(field_name: Literal['chunk', b'chunk', 'info', b'info', 'type', b'type']) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueError
will be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- WhichOneof(oneof_group: Literal['type', b'type']) Literal['info', 'chunk'] | None
Returns the name of the field that is set inside a oneof group.
If no field is set, returns None.
- Parameters:
oneof_group (str) – the name of the oneof group to check.
- Returns:
The name of the group that is set, or None.
- Return type:
str or None
- Raises:
ValueError – no group with the given name exists
- viam.gen.component.audioinput.v1.audioinput_pb2.global___ChunksResponse
- class viam.gen.component.audioinput.v1.audioinput_pb2.PropertiesRequest(*, name: str = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- name: str
Name of an audio input
- viam.gen.component.audioinput.v1.audioinput_pb2.global___PropertiesRequest
- class viam.gen.component.audioinput.v1.audioinput_pb2.PropertiesResponse(*, channel_count: int = ..., latency: google.protobuf.duration_pb2.Duration | None = ..., sample_rate: int = ..., sample_size: int = ..., is_big_endian: bool = ..., is_float: bool = ..., is_interleaved: bool = ...)
Bases:
google.protobuf.message.Message
Abstract base class for protocol messages.
Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.
- channel_count: int
- sample_rate: int
- sample_size: int
- is_big_endian: bool
- is_float: bool
- is_interleaved: bool
- property latency: google.protobuf.duration_pb2.Duration
- HasField(field_name: Literal['latency', b'latency']) bool
Checks if a certain field is set for the message.
For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor,
ValueError
will be raised.- Parameters:
field_name (str) – The name of the field to check for presence.
- Returns:
Whether a value has been set for the named field.
- Return type:
bool
- Raises:
ValueError – if the field_name is not a member of this message.
- viam.gen.component.audioinput.v1.audioinput_pb2.global___PropertiesResponse