MCPcopy Create free account
hub / github.com/ARM-software/AVH / readAudio

Method readAudio

interface/vstream/python/vsi_audio.py:163–175  ·  view source on GitHub ↗

Request audio data from the server. Args: size: Number of bytes to read. Returns: tuple: (data, eos) where data is a Bytearray of audio data and eos is a Boolean indicating end-of-stream.

(self, size)

Source from the content-addressed store, hash-verified

161 return stream_active
162
163 def readAudio(self, size):
164 """
165 Request audio data from the server.
166 Args:
167 size: Number of bytes to read.
168 Returns:
169 tuple: (data, eos) where data is a Bytearray of audio data and eos is a Boolean indicating end-of-stream.
170 """
171 self.conn.send([self.AUDIO_READ, size])
172 data = self.conn.recv_bytes()
173 eos = self.conn.recv()
174
175 return data, eos
176
177 def writeAudio(self, data):
178 """

Callers 1

rdDataDMAFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected