# Play audio file as system sound?

**URL:** <https://forum.juce.com/t/play-audio-file-as-system-sound/64604>\
**Category:** General JUCE discussion\
**Created:** [December 12, 2024, 5:21pm UTC](https://forum.juce.com/t/play-audio-file-as-system-sound/64604 "2024-12-12T17:21:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pajczur](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pajczur](https://forum.juce.com/u/pajczur)\
**Post date:** [December 12, 2024, 5:21pm UTC](https://forum.juce.com/t/play-audio-file-as-system-sound/64604/1 "2024-12-12T17:21:55Z")

</div>

Hello,  
is there any way to play some audio file by system as it does with all alerts etc. ?

For example I have button and on click I would like to play some alert sound but defined by myself instead system sound.

For any help great thanks in advance.

---

<div class="post-metadata">

**Author:** ![QuilioLtd](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/quilioltd/32/15459_2.png) [@QuilioLtd](https://forum.juce.com/u/QuilioLtd)\
**Post date:** [December 13, 2024, 1:23pm UTC](https://forum.juce.com/t/play-audio-file-as-system-sound/64604/2 "2024-12-13T13:23:25Z")

</div>

Windows: [PlaySound function (Windows) | Microsoft Learn](https://learn.microsoft.com/en-us/previous-versions/dd743680(v=vs.85))

MacOS: [AVAudioPlayer | Apple Developer Documentation](https://developer.apple.com/documentation/avfaudio/avaudioplayer)

Linux: [Alsa Opensrc Org - Independent ALSA and linux audio support site](https://alsa.opensrc.org/Aplay)

Hope this helps.
