jacdac.sound_player

Submodules

Package Contents

Classes

SoundPlayerClient

A device that can play various sounds stored locally. This service is typically paired with a storage service for storing sounds.

class jacdac.sound_player.SoundPlayerClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A device that can play various sounds stored locally. This service is typically paired with a storage service for storing sounds. Implements a client for the Sound player service.

property volume: float | None

(Optional) Global volume of the output. 0 means completely off. This volume is mixed with each play volumes., _: /

play(name: str) None

Starts playing a sound.

cancel() None

Cancel any sound playing.