ifa.startswith("--rpi-bluetooth-setup"):# tested on Raspberry Pi 400 with Raspbian 11; also tested on Raspberry Pi Zero W with Raspbian 10 Lite (with the device already paired: needed to say "scan on", "discovery on", remove + pair in bluetoothctl). Send Eth=(bluetooth Ethernet addr) to start. Note that the setup command reboots the system.
ifa.startswith("--rpi-bluetooth-setup"):# tested on Raspberry Pi 400 with Raspbian 11 and Raspbian 12; also tested on Raspberry Pi Zero W with Raspbian 10 Lite (with the device already paired: needed to say "scan on", "discovery on", remove + pair in bluetoothctl). Send Eth=(bluetooth Ethernet addr) to start. Note that the setup command reboots the system.
elifa=="--aplay":use_aplay=True# aplay and madplay, for older embedded devices, NOT tested together with --rpi-bluetooth-* above
elifa.startswith("--delegate="):delegate_to_check=a.split('=')[1]# will ping that IP and delegate all sound to it when it's up. E.g. if it has better amplification but it's not always switched on.
elifa.startswith("--chime="):chime_mp3=a.split('=')[1]# if clock bell desired, e.g. echo '$i-14vfff$c48o0l1b- @'|mwr2ly > chime.ly && lilypond chime.ly && timidity -Ow chime.midi && audacity chime.wav (amplify + trim) + mp3-encode (keep default 44100 sample rate so ~38 frames per sec). Not designed to work with --delegate. Pi1's 3.5mm o/p doesn't sound very good with this bell.