# How to play an audio in Julia?

**URL:** <https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881>\
**Category:** General Usage\
**Created:** [December 5, 2019, 12:42am UTC](https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881 "2019-12-05T00:42:23Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![AshtonSBradley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ashtonsbradley/32/11140_2.png) [@AshtonSBradley](https://discourse.julialang.org/u/AshtonSBradley)\
**Post date:** [April 16, 2020, 10:24am UTC](https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881/21 "2020-04-16T10:24:09Z")

</div>

would be great to see something like this folded into WAV

> [@Play a sound in Jupyter Notebook](https://discourse.julialang.org/t/play-a-sound-in-jupyter-notebook/15870/10):
>
> Found this thread actually looking for how to have a player widget on a notebook, ended up with this after a [python example](https://nbviewer.jupyter.org/gist/Carreau/5507501/the%20sound%20of%20hydrogen.ipynb): using WAV wavwrite(0.4\*rand(2000, 2), "example2.wav", Fs=44100.0) audioplayer(filepath) = """ \<head\> \<meta http-equiv="Content-Type" content="text/html; charset=utf-8"\> \<title\>Simple Test\</title\> \</head\> \<body\> \<audio controls="controls" style="width:600px" \> \<source src="$filepath" type="audio/wav" /\> Your browser does not suppor…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881)._
