Currently KNotifications emits sound for notification client-side if the Sound action is specified in the notifyrc (or the user has configured it that way). For this it used canberra with build-time fallback to Phonon.
Android, Windows and macOS do sound themeselves so we don't want/can't use canberra there.
Moving the sound to Plasma/the notification server would have a number of benefits:
- Better platform integration
- KNotifications and thus apps don't need to link against canberra/phonon/whatever
- non-KNotifications apps could have notification sound on Plasma
- Consistent configuration on the Plasma side
This needs investigation on how the relevant Linux notification services handle/support sound.
GNOME has sound-file and sound-name hints for this (https://developer.gnome.org/notification-spec/)
Also needs investigating if/how Windows/Android/mac allow setting specific sounds and how to design a KNotifications-side API for that