MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / encode

Method encode

tests/test_media_utils.py:728–730  ·  view source on GitHub ↗
(self, input_io, output_io, sample_rate, bit_rate, tencent=True)

Source from the content-addressed store, hash-verified

726 self.calls = []
727
728 def encode(self, input_io, output_io, sample_rate, bit_rate, tencent=True):
729 self.calls.append({"sample_rate": sample_rate, "tencent": tencent})
730 output_io.write(b"\x02#!SILK_V3")
731
732
733@pytest.mark.asyncio

Calls 2

appendMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected