neon-phal-plugin-audio-receiver
Handles bus events to do audio receiver tasks for the Neon.AI OS on a Mycroft Mark 2.
self.bus.on("neon.phal.plugin.audio.receiver.set.uxplay.name", self.handle_set_uxplay_name)
self.bus.on("neon.phal.plugin.audio.receiver.set.raspotify.name", self.handle_set_raspotify_name)
self.bus.on("neon.phal.plugin.audio.receiver.pair.bluetooth", self.handle_pair_bluetooth)
self.bus.on("neon.phal.plugin.audio.receiver.pair.kdeconnect", self.handle_pair_kdeconnect)
self.bus.on("neon.phal.plugin.audio.receiver.disable.service", self.handle_disable_service)
self.bus.on("neon.phal.plugin.audio.receiver.stop.service", self.handle_stop_service)
self.bus.on("neon.phal.plugin.audio.receiver.enable.service", self.handle_enable_service)
self.bus.on("neon.phal.plugin.audio.receiver.start.service", self.handle_start_service)
Testing
pytest -vvv --cov=neon_phal_plugin_audio_receiver will execute the unit tests, which can run in any environment.
For integration testing, clone this repo on a Mark 2 with the mid-August Neon image or later and execute /home/neon/venv/bin/python tests/integration/integration.py
The integration.py file has a couple of commented tests - these are the auto-pairing tests and tests to set device names. Since those require external interaction it's best to run them one at a time as you're ready.
Metadata
Release files for neon-phal-plugin-audio-receiver 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| neon-phal-plugin-audio-receiver-0.0.4.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| neon_phal_plugin_audio_receiver-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.3 kB
Release files / neon-phal-plugin-audio-receiver-0.0.4.tar.gz
| Download URL | neon-phal-plugin-audio-receiver-0.0.4.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3448f806e7f12b863d6151a38fe389e97e1617b94b56cc63cf5798cc2462d1dd
|
|
BLAKE2b-256 checksum How to use checksums |
b8c552763f0ef052e70fe7b2ae04725ca5f53b377ab042e17bcdbc755af169bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / neon_phal_plugin_audio_receiver-0.0.4-py3-none-any.whl
| Download URL | neon_phal_plugin_audio_receiver-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f3c52b01d734ff6bd0e4b1bd30cd3c27947f751493b2a677564e80ecd0852de
|
|
BLAKE2b-256 checksum How to use checksums |
e3bcbfb80cd439692e86f1b2c88e194e228eddf29dee23ea07849373da4fafb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|