# Simple Source Code Example To Play Sound Effects And Music Audio?

**URL:** <https://phaser.discourse.group/t/simple-source-code-example-to-play-sound-effects-and-music-audio/13111>\
**Category:** Phaser 3\
**Created:** [April 6, 2023, 12:04am UTC](https://phaser.discourse.group/t/simple-source-code-example-to-play-sound-effects-and-music-audio/13111 "2023-04-06T00:04:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JesseLee](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jesselee/32/7525_2.png) [@JesseLee](https://phaser.discourse.group/u/JesseLee)\
**Post date:** [April 6, 2023, 12:04am UTC](https://phaser.discourse.group/t/simple-source-code-example-to-play-sound-effects-and-music-audio/13111/1 "2023-04-06T00:04:18Z")

</div>

Hi,

Can someone provide a simple source code example to play sound effects and music audio?  
Looked at the official docs, but there is no code examples there?

Jesse

---

<div class="post-metadata">

**Author:** ![JesseLee](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jesselee/32/7525_2.png) [@JesseLee](https://phaser.discourse.group/u/JesseLee)\
**Post date:** [April 6, 2023, 12:14am UTC](https://phaser.discourse.group/t/simple-source-code-example-to-play-sound-effects-and-music-audio/13111/2 "2023-04-06T00:14:18Z")

</div>

Nevermind, I think below will help me:

> **[Phaser - Examples - Play Sound On Keypress](https://phaser.io/examples/v3/view/audio/web-audio/play-sound-on-keypress)**
>
> Desktop and Mobile HTML5 game framework. A fast, free and fun open source framework for Canvas and WebGL powered browser games.

---

<div class="post-metadata">

**Author:** ![JesseLee](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jesselee/32/7525_2.png) [@JesseLee](https://phaser.discourse.group/u/JesseLee)\
**Post date:** [April 6, 2023, 12:46am UTC](https://phaser.discourse.group/t/simple-source-code-example-to-play-sound-effects-and-music-audio/13111/3 "2023-04-06T00:46:31Z")

</div>

Hi, updated the source with playing a sound which can be viewed [here](https://bitbucket.org/jesseleepalser/phaser-engine/src/master/), Jesse
