# P5js sound and Safari

**URL:** <https://discourse.processing.org/t/p5js-sound-and-safari/20880>\
**Category:** Libraries\
**Created:** [May 14, 2020, 6:07pm UTC](https://discourse.processing.org/t/p5js-sound-and-safari/20880 "2020-05-14T18:07:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sven](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sven/32/8293_2.png) [@Sven](https://discourse.processing.org/u/Sven)\
**Post date:** [May 14, 2020, 6:29pm UTC](https://discourse.processing.org/t/p5js-sound-and-safari/20880/2 "2020-05-14T18:29:16Z")

</div>

Hello @antocreo,

I think you’ve stumbled upon the user-must-interact-before-sound-can-be-played-feature. 😊

> [@Getting sounds to play in mobile?](https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673/2):
>
> Hello @calfish, Some browsers, like Safari on iOS, won’t play audio unless the user interacts with the page first, like tapping a button. To successfully play audio in those browsers, you could add a “Press to play” button and start playing audio after the user tapped it. From [Apple’s Safari HTML5 Audio and Video Guide](https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/PlayingandSynthesizingSounds/PlayingandSynthesizingSounds.html#//apple_ref/doc/uid/TP40009523-CH6-SW1): Note: On iOS, the Web Audio API requires sounds to be triggered from an explicit user action, such as a tap.

---

_[View the full topic](https://discourse.processing.org/t/p5js-sound-and-safari/20880)._
