You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AppStream currently supports images and videos in <screenshots>, but has no way to include audio samples. This would be valuable for components where audio is the primary "preview" — most notably text-to-speech (TTS) voices.
Use Case
The Spiel project provides a TTS framework for Linux with installable voice packages distributed via Flatpak. The spiel-installer app lets users browse and install voices, but currently there is no way to preview how a voice sounds before downloading it.
Audio previews would let users hear a voice sample before committing to a download — similar to how screenshots let users see an app before installing.
Proposed Solution
Add an <audio> element as a sibling to <image> and <video> within <screenshot>, or introduce a new top-level <samples> element. For example:
Option A: Extend <screenshot> with audio media kind
<screenshots>
<screenshottype="default">
<audiotype="vorbis"xml:lang="sv">https://example.org/voices/alma_sample.ogg</audio>
<caption>Swedish female voice sample — "Hej, jag heter Alma"</caption>
</screenshot>
</screenshots>
This follows the existing pattern where <screenshot> already supports both <image> and <video> elements, and would add AS_SCREENSHOT_MEDIA_KIND_AUDIO alongside the existing image/video kinds.
Summary
AppStream currently supports images and videos in
<screenshots>, but has no way to include audio samples. This would be valuable for components where audio is the primary "preview" — most notably text-to-speech (TTS) voices.Use Case
The Spiel project provides a TTS framework for Linux with installable voice packages distributed via Flatpak. The spiel-installer app lets users browse and install voices, but currently there is no way to preview how a voice sounds before downloading it.
See: project-spiel/spiel-installer#2
Audio previews would let users hear a voice sample before committing to a download — similar to how screenshots let users see an app before installing.
Proposed Solution
Add an
<audio>element as a sibling to<image>and<video>within<screenshot>, or introduce a new top-level<samples>element. For example:Option A: Extend
<screenshot>with audio media kindThis follows the existing pattern where
<screenshot>already supports both<image>and<video>elements, and would addAS_SCREENSHOT_MEDIA_KIND_AUDIOalongside the existing image/video kinds.Option B: New
<audio-samples>elementBenefits
Audio Format Considerations
Similar to how videos support multiple containers (WebM, Matroska), audio samples could support:
.ogg) — open, widely supported.opus) — modern, efficient.flac) — lossless optionShort samples (5-15 seconds) would be typical, keeping file sizes small.
Prior Art
I would be happy to help with a specification draft or implementation if this is of interest.