Mousai icon indicating copy to clipboard operation
Mousai copied to clipboard

Does not ask for microphone access permission

Open aryasheikhi opened this issue 2 years ago • 9 comments

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

  1. Install using Snap on Ubuntu 22.04.03
  2. Try listening
  3. Application does not get microphone access and

aryasheikhi avatar Oct 26 '23 14:10 aryasheikhi

I'm not sure how microphone access works under snap, so I'm going to ping @soumyaDghosh here.

SeaDve avatar Oct 27 '23 11:10 SeaDve

@aryasheikhi I am requesting some extra details here to debug.

Outputs of the below commands.

  1. snap version
  2. 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.

soumyaDghosh avatar Oct 27 '23 11:10 soumyaDghosh

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?

SeaDve avatar Oct 28 '23 00:10 SeaDve

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 image

aryasheikhi avatar Nov 03 '23 10:11 aryasheikhi

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?

soumyaDghosh avatar Nov 03 '23 11:11 soumyaDghosh

The logs would also be useful from Mousai side (if it is not a packaging issue)

SeaDve avatar Nov 03 '23 11:11 SeaDve

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.

soumyaDghosh avatar Nov 03 '23 11:11 soumyaDghosh

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

SeaDve avatar Nov 03 '23 11:11 SeaDve

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.

image

soumyaDghosh avatar Nov 03 '23 11:11 soumyaDghosh

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!

SeaDve avatar Jan 27 '24 12:01 SeaDve