A plugin for OVOS/NEON that allows the user to control the audio receiver options by voice command.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file neon-phal-plugin-audio-receiver-0.0.1.tar.gz
.
File metadata
- Download URL: neon-phal-plugin-audio-receiver-0.0.1.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72d4215cfe6364ff0ea225a7def21c6ce1526fd5c4cb65e619aa4050ff4a4cbf |
|
MD5 | e2a31f0ea7926e7324e294b5aba73173 |
|
BLAKE2b-256 | 28ca8b97e90f37421f8a936016efcf6e30c071617f83a4e229479e16a7478679 |
File details
Details for the file neon_phal_plugin_audio_receiver-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: neon_phal_plugin_audio_receiver-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ddafd1c202711ead2b105e5d6f9f60d8f77f8dc64a7a13fbbcc8a83e5de5b4 |
|
MD5 | 0f8e8d4e11ef89553a478b548da2202d |
|
BLAKE2b-256 | dc0d2cf5f35b6e8474217355aa34be385772507754983b5d916248e4f11a0202 |