feat(skills): reworked skills and rules
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
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
This commit is contained in:
1 parent
29632ff0ce
commit
f5d8f6f11b
124 files changed
+1250
-8138
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# 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"` or `metadata` for 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 `MediaElement` or the project's audio service; in .NET MAUI, use `MediaElement` from `CommunityToolkit.Maui.MediaElement` or 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](https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Autoplay), [WCAG 2.2](https://www.w3.org/TR/WCAG22/).
|
||||
Reference in new issue
Block a user