# Can we add an alarm to Julia?

**URL:** <https://discourse.julialang.org/t/can-we-add-an-alarm-to-julia/116505>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 2, 2024, 6:55am UTC](https://discourse.julialang.org/t/can-we-add-an-alarm-to-julia/116505 "2024-07-02T06:55:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 2, 2024, 6:55am UTC](https://discourse.julialang.org/t/can-we-add-an-alarm-to-julia/116505/1 "2024-07-02T06:55:42Z")

</div>

Can we add an alarm to Julia so that it can sound an alarm when a program terminates?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [July 2, 2024, 6:59am UTC](https://discourse.julialang.org/t/can-we-add-an-alarm-to-julia/116505/2 "2024-07-02T06:59:22Z")

</div>

See this prior discussion:

> [@How to play a sound or tone when a program ends?](https://discourse.julialang.org/t/how-to-play-a-sound-or-tone-when-a-program-ends/41239/29):
>
> ‘wavplay’ from [WAV · Julia Packages](https://juliapackages.com/p/wav) worked fine for me. using WAV y, fs = wavread("foo.wav") Anywhere in your program where you want to play the sound in the file foo.wav, just add the line. wavplay(y, fs) Also you can try Beep.jl ([GitHub - arubhardwaj/Beep.jl: Notify me, Julia! I cannot remember after executing the script!!](https://github.com/arubhardwaj/Beep.jl/tree/main)).

---

<div class="post-metadata">

**Author:** ![WuSiren](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wusiren/32/42529_2.png) [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Post date:** [July 2, 2024, 7:00am UTC](https://discourse.julialang.org/t/can-we-add-an-alarm-to-julia/116505/3 "2024-07-02T07:00:58Z")

</div>

Interesting. Thanks!
