CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
1.6 KiB
1.6 KiB
Audio
Formats
- Use Opus (in WebM or Ogg) for the best quality per byte, and AAC (in MP4/M4A) or MP3 where broad compatibility matters. Offer more than one
<source>when the target clients differ. Keep lossless masters (such as FLAC or WAV) as originals, not as delivery files. - Encode speech at a lower bitrate than music, and normalize loudness across clips so users do not need to change volume between them.
Playback
- Never autoplay audio. Start playback only after a user action.
- Use native
<audio controls>or an accessible custom player with keyboard support, visible focus, and labeled play, pause, and volume controls. - Any audio that plays for more than 3 seconds needs a way to pause or stop it or to set its volume independently of the system volume (WCAG 1.4.2, level A).
- Use
preload="none"ormetadatafor audio the user may not play.
Accessibility
- Provide a transcript for prerecorded audio-only content, such as podcasts or recorded announcements (WCAG 1.2.1, level A), including relevant non-speech sounds.
- Never convey information through sound alone; pair notification sounds with a visible indicator.
Desktop and mobile apps
- In WPF, play audio with
MediaElementor the project's audio service; in .NET MAUI, useMediaElementfromCommunityToolkit.Maui.MediaElementor the project's audio library. Respect the platform's mute switch, audio focus, and background audio permissions, and release players when pages close.
References: MDN autoplay, WCAG 2.2.