Source code for viam.media.audio
from dataclasses import dataclass
from viam.proto.component.audioinput import AudioChunk, AudioChunkInfo
from viam.streams import Stream, StreamReader
[docs]@dataclass
class Audio:
"""A block of audio data containing information about the block and the audio data"""
info: AudioChunkInfo
chunk: AudioChunk
AudioReader = StreamReader[Audio]
AudioStream = Stream[Audio]