audiodev.wasm_audio

Web Audio PCM backend for the direct MicroPython WebAssembly runtime.

class audiodev.wasm_audio.WasmPCMOutput(format=AudioFormat(rate=48000, channels=2, bits=16, signed=True, byteorder='little'), *, latency=None, **kwargs)[source]

Bases: PCMOutput

queued_size()[source]

Bytes still waiting to play or capture. Default 0.

is_active()[source]

True while PCM remains queued. Default False.

clear()[source]

Drop queued PCM now. Default no-op.

class audiodev.wasm_audio.WasmPCMInput(format=AudioFormat(rate=48000, channels=2, bits=16, signed=True, byteorder='little'), *, latency=None, **kwargs)[source]

Bases: PCMInput

queued_size()[source]

Bytes still waiting to play or capture. Default 0.

is_active()[source]

True while PCM remains queued. Default False.

clear()[source]

Drop queued PCM now. Default no-op.