# Getting sounds to play in mobile?

**URL:** https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673
**Category:** Libraries
**Created:** [May 9, 2020, 4:10pm UTC](https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673 "2020-05-09T16:10:42Z")
**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 9, 2020, 8:54pm UTC](https://discourse.processing.org/t/getting-sounds-to-play-in-mobile/20673/2 "2020-05-09T20:54:42Z")

</div>

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/getting-sounds-to-play-in-mobile/20673)._
