Does not ask for microphone access permission
Affected version
-
io.github.seadve.Mousai 0.7.5
-
Flatpak: false
-
Language: en_US.UTF-8, en_US, en.UTF-8, en, C
-
Distribution: Ubuntu Core 22
-
Desktop Session: ubuntu
-
Display Server: wayland
-
GTK 4.12.2
-
Libadwaita 1.4.0
-
Libsoup 3.4.3
-
GStreamer 1.20.3
Bug summary
I installed the app using snap. After trying to recognize a song, the app did not respond by accessing microphone data. Instead it threw an error indicating "Received Other Permanent Error"
Steps to reproduce
- Install using Snap on Ubuntu 22.04.03
- Try listening
- Application does not get microphone access and
I'm not sure how microphone access works under snap, so I'm going to ping @soumyaDghosh here.
@aryasheikhi I am requesting some extra details here to debug.
Outputs of the below commands.
-
snap version -
snap connections mousai
EDIT: if possible kindly share some screenshots also.
EDIT2: @SeaDve if I am not wrong, mousai uses portals to access the microphone, but with Ubuntu 22.04 it probably doesn't have that latest portal, which is probably making this error. Kindly correct me if I am wrong.
if I am not wrong, mousai uses portals to access the microphone, but with Ubuntu 22.04 it probably doesn't have that latest portal, which is probably making this error. Kindly correct me if I am wrong.
Mousai uses the gstreamer device provider and fallbacks to pulseaudio. While I'd like for it to use a portal to access the microphone, it currently does not, and I think there is no microphone portal at the present.
Edit: I have a feeling OP does not have pulseaudio properly set up, but only the logs could tell.
@aryasheikhi Could you also provide the logs with the issue reproduced?
Thanks for the reply @soumyaDghosh As for snap version
➜ ~ snap --version
snap 2.60.4
snapd 2.60.4
series 16
ubuntu 22.04
kernel 6.2.0-36-generic
as for snap connections
For the snap, I'll try to add the audio-record plug. But I see you're using generic kernels. Are they supported by ubuntu?
The logs would also be useful from Mousai side (if it is not a packaging issue)
The logs would also be useful from Mousai side
I am actually very curious about them. @SeaDve does you app need access to microphone separately? I think then it's my fault.
does you app need access to microphone separately?
I'm not sure what exactly you mean, but on Flatpak side, you at least need the pulseaudio socket, both when recording from microphone or desktop audio
Umm.. seems that snap has it. But, TBH, the snap was never to recognize any song via microphone. But, I never found any error log regarding not able to access microphone. It also looked like that it's recording audio. Cause it spiked while high talks.
I'm gonna close this for now since the information given does not give much context or the problem. Feel free to re-open it though with the required information. Thanks!