Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running alsa inside daemon snap #1

Open
guyluz11 opened this issue Mar 1, 2020 · 2 comments
Open

Running alsa inside daemon snap #1

guyluz11 opened this issue Mar 1, 2020 · 2 comments
Labels
bug Something isn't working Hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ Hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/

Comments

@guyluz11
Copy link
Member

guyluz11 commented Mar 1, 2020

This is Snowboy blocker.

Snowboy need alsa to run.
When I change my snap to run as daemon alse stop working and I get the error

  ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:0
  ALSA lib control.c:1373:(snd_ctl_open_noupdate) Invalid CTL hw:1
  No protocol specified
  xcb_connection_has_error() returned true
  ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sysdefault
  No protocol specified
  xcb_connection_has_error() returned true
  ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sysdefault
  Fail to open PortAudio stream, error message is Device unavailable.

So we need new way to run Snowboy that will work with root permissions, as alsa/ pulseaudio cannot run as root in ubuntu.

@guyluz11 guyluz11 changed the title snowboy blockers Snowboy blockers Mar 4, 2020
@guyluz11 guyluz11 transferred this issue from CyBear-Jinni/cbj_smart-home Sep 22, 2020
@guyluz11 guyluz11 changed the title Snowboy blockers Running alsa inside daemon snap Oct 1, 2020
@guyluz11 guyluz11 added bug Something isn't working Hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ Hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ labels Oct 1, 2020
@guyluz11
Copy link
Member Author

We will take example and actually use the code from mycroft-precise
https://github.com/MycroftAI/mycroft-precise

As the alsa is working inside their snap and it is commercial use permitted, open source, Accurate, and easy to create our own wake word which will be "Jinni" or "Hey Jinni".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/ Hacktoberfest 2020 Support Hacktoberfest open source event https://hacktoberfest.digitalocean.com/
Projects
None yet
Development

No branches or pull requests

1 participant