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

neon-phal-plugin-audio-receiver-0.0.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file neon-phal-plugin-audio-receiver-0.0.4.tar.gz.

File metadata

File hashes

Hashes for neon-phal-plugin-audio-receiver-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3448f806e7f12b863d6151a38fe389e97e1617b94b56cc63cf5798cc2462d1dd
MD5 518e410ebb93955ff2e8eb48b84c763a
BLAKE2b-256 b8c552763f0ef052e70fe7b2ae04725ca5f53b377ab042e17bcdbc755af169bc

See more details on using hashes here.

File details

Details for the file neon_phal_plugin_audio_receiver-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for neon_phal_plugin_audio_receiver-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6f3c52b01d734ff6bd0e4b1bd30cd3c27947f751493b2a677564e80ecd0852de
MD5 0e0825e5a0c90236b7c710027a2788b4
BLAKE2b-256 e3bcbfb80cd439692e86f1b2c88e194e228eddf29dee23ea07849373da4fafb8

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