Applications can play sounds from a standard collection of event sounds using the GSound.Context API. This API also allows sound files packaged with the application to be played. These files are supplied as additional data files and are installed into locations on the phone’s filing system.
When distributed as a flatpak, the manifest needs to include the
--socket=pulseaudio permission that allows the application to access the phone’s sound system.