Some months back I looked at making a gradio snap. I’m re-visiting it with a view to using the gnome platform snap. However I’m getting alsa errors which I can’t fathom, and would appreciate some help.
I’ve seen Comment #5 : Bug #1598309 : Bugs : snapd package : Ubuntu and thus ~jdstrand/+git/alsa-utils - [no description] and copied wholesale the suggestions. However, when I play audio in my gradio snap, it just errors with:-
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib conf.c:3357:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Device or resource busy
Suggestions welcome.
Snap is here:- http://people.canonical.com/~alan/gradio_5.0_amd64.snap Source:- gradio : Code : Alan Pope 🍺🐧🐱 🦄
Grab or build the snap then:-
snap install gradio_5.0_amd64.snap --dangerous
snap connect gradio:gnome-3-24-platform gnome-3-24:gnome-3-24-platform
snap connect gradio:alsa core:alsa
Then run gradio. Try and play any station. I think I’ve ruled out things like codecs, and used the alsa tricks madness from @jdstrand but it never plays any audio. Tried on my 16.04 laptop and in a 16.04 clean VM.
Suggestions welcome