Request auto-connect for snap PyGPT

Hello Snapcraft Team,

I would like to request the ability to auto-connect some interfaces for my Snap called PyGPT, which is an open-source AI assistant with built-in speech recognition and speech synthesis capabilities. I am the developer of the application, and here is why I am asking for this functionality:

Currently, when users try to enable audio synthesis, I have to display a message instructing them to run “sudo snap connect …” in their terminal. This is not convenient, and many users report issues on GitHub about being unable to connect their audio playback / or microphone.

I would be very grateful if it were possible to enable auto-connection for the mentioned interfaces. I also want to inform you that none of these functions are triggered automatically. Each function must be manually activated, and there are appropriate buttons in the application for this purpose.

Best regards

Marcin Szczygliński

Hey @szczyglis

Thanks for you request!

First, alsa interface is usually only needed for applications with very strict latency requirement, such as DAWs and so on. It gives direct driver access to the audio hardware and may block other applications from recording or playing sound. I think for your application audio-playback should be more robust in this case. Could you give it a try?

I can support the auto-connection for audio-record. Even if it looks more like an optional than core feature, it provides a very convenient way to use the application.

Regarding the camera interface, it does not look like a feature that is going to be generally used by most users (please correct me). In this case I would recommend to detect if the interface is connected via (snapctl is-connected camera) and prompt the user to manually connect it otherwise

Thanks

Thanks