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
Hashes for neon-phal-plugin-audio-receiver-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f8fbf390b51ed23fe35cc2be0198979d53f0b402b1d2e5da8509a1e7b359ed9 |
|
MD5 | 0f81e74fbe69a157809a3c0f7d2d339d |
|
BLAKE2b-256 | 72e65d3fda6d76a11be7061aa5d4c75aed3dca87eb6069d5778af9c40e312060 |
Hashes for neon_phal_plugin_audio_receiver-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bb9c5683b0f9b003d3b1e8deeea7e88b7bea6b85c6bb66883118968558f0888 |
|
MD5 | 8a3821f2cee73cc24629e616e59213d6 |
|
BLAKE2b-256 | 366d93ee934d7e09ae4d4c1e777b26690762782685a787d727d7a9ab9f8732ed |