Skip to main content

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


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.2a1.tar.gz.

File metadata

File hashes

Hashes for neon-phal-plugin-audio-receiver-0.0.2a1.tar.gz
Algorithm Hash digest
SHA256 94efd0c10d8a0084ce6f8babeac6055a2aac07af958dfa7f786a1f2a3e1b836a
MD5 358c05032e40b685f4cad68a338f477f
BLAKE2b-256 9c4c6b7a0121a4047a5fd6a730ca6d547a9fad8a64a06a1cbe36752569c30726

See more details on using hashes here.

File details

Details for the file neon_phal_plugin_audio_receiver-0.0.2a1-py3-none-any.whl.

File metadata

File hashes

Hashes for neon_phal_plugin_audio_receiver-0.0.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4cb8fe9b716d4cc39e31c1874aa4d3a78fc5ee90899f6cdf82714a54d2aaab3
MD5 e3e5367b5e7d65369c9d290894a0eac2
BLAKE2b-256 cd4ff0375c1d6a05d712043771248a2edd17981fbedafedaacea39b8ea06c1dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page