Request for auto-connection of alsa for hyperbook

name: hyperbook description: Private, offline audiobook and music player for files stored in the user’s local library. snapcraft: PRIVATE upstream: PRIVATE upstream-relation: publisher and maintainer plugs: alsa: request-type: auto-connection reasoning: | HyperBook provides an optional ALSA Direct mode that opens an audio device selected explicitly by the user. This allows playback without system resampling when the selected hardware supports the source format.

  In our test, the same 24-bit/192 kHz FLAC file was output at 48 kHz
  through the default System Audio path and at 192 kHz through ALSA Direct
  with a compatible USB DAC.

  ALSA Direct is disabled by default and must be enabled explicitly in the
  application settings. If the selected device cannot be opened, HyperBook
  falls back to System Audio.

  Without auto-connection, users must manually run:

  sudo snap connect hyperbook:alsa

  Most users will not know that this additional command is required, so
  the optional ALSA Direct feature remains unavailable even when the
  application and hardware support it. HyperBook uses ALSA only for audio
  playback through the output device selected by the user.

This request has been added to the queue for review by the @reviewers team.

Hi @HyperCon

The use of alsa interface by design could block other applications from playing or recording sound. While I agree to the technical justification on why the access is needed but given that the feature is optional and not enabled by default, -1 from me to grant auto-connection of alsa interface.

You can use snapctl is-connected alsa to detect when it isn’t connected so you can guide the user to connect.

What do other reviewers think?

Thank you for reviewing the request. We understand the concern, but we would like to clarify an important distinction: auto-connecting the interface would grant HyperBook permission to use ALSA; it would not cause the application to reserve an audio device automatically.

HyperBook uses System Audio by default. ALSA Direct is disabled by default and is activated only when the user explicitly selects that mode and chooses a hardware output device. The application does not open an ALSA device at startup, does not access audio capture, and does not reserve hardware unless the user deliberately enables direct playback. The interface can also clearly warn that the selected device may become unavailable to other applications while this mode is active.

This is functionally comparable to WASAPI Exclusive on Windows: the potentially exclusive operation happens only after an explicit choice inside the application. Windows users can make that choice directly in the graphical interface. Requiring Snap users to copy a command, open a terminal, enter an administrator password, and return to the application creates a materially different and unsuitable experience for a consumer audio player.

This is not merely a convenience issue. In our hardware testing, System Audio resampled a 24-bit/192 kHz source to 48 kHz, whereas ALSA Direct preserved the source sample rate when used with a capable USB DAC. Direct hardware playback is therefore a real audio feature, not simply an alternative implementation of the same output path.

HyperBook is designed for non-technical users. We do not believe that understanding Snap interfaces or using administrative terminal commands should be a prerequisite for enabling a playback mode exposed in the application’s settings.

If auto-connection is refused, our practical option is not to guide ordinary users through terminal administration, but to omit ALSA Direct from the stable Snap release and provide only System Audio. That would make the Linux/Snap edition materially less capable than the Windows edition, despite the application already implementing a safe default, explicit opt-in, device selection, fallback handling, and clear user communication.

We therefore ask the reviewers to consider the actual runtime behaviour: permission would be connected automatically, but exclusive hardware access would remain strictly user-initiated and disabled by default.

From a publisher’s perspective, requiring terminal-based permission management for an explicitly user-selected playback feature makes it very difficult to offer Linux users the same polished experience available on other desktop platforms. This kind of friction contributes to Linux remaining a minority desktop platform, which is precisely what we were trying to help change by bringing HyperBook to Linux.

Hi folks!

I think this is a very interesting discussion, and there are valid arguments both for and against granting the auto-connection.

The arguments in favor include:

  • The application audience includes non-technical users.
  • The application already implements safe defaults, explicit opt-in, device selection, fallback handling, and clear user communication.

On the other hand, the arguments against include:

  • Auto-connection to the alsa interface is not typically granted, as it may block other applications from accessing audio devices.
  • The application is fully functional without alsa ; it only enables an opt-in feature.
  • I don’t think most users would expect this auto-connection, as alsa is typically only granted to Hi-Fi and DAW applications.

I don’t have a particularly strong opinion either way, but given that:

  • “The application does not open an ALSA device at startup, does not access audio capture, and does not reserve hardware unless the user deliberately enables direct playback .”
  • “The interface can also clearly warn that the selected device may become unavailable to other applications while this mode is active.”

I believe the decision ultimately depends on the application’s maturity, the publisher’s trustworthiness, and their commitment to maintaining these safeguards.

Therefore, I would be willing to support the auto-connection upon successful completion of the Verified Accounts process.

If, for any reason, this process cannot be successfully completed, I think hyperbook should stick to manual connection.

Thanks!

Thank you for your thoughtful and balanced response.

Following your recommendation, HyperCon Ltd. has now initiated the Verified Publisher application process. We appreciate your willingness to reconsider the auto-connection request upon successful completion of that process.

We remain committed to maintaining the safeguards described in this thread and will be happy to provide any additional technical or organisational information required during the review.

Thank you again for your guidance.