# How to play and pause the audio using ionic2

**URL:** <https://forum.ionicframework.com/t/how-to-play-and-pause-the-audio-using-ionic2/91547>\
**Category:** ionic-v3\
**Created:** [May 24, 2017, 8:26am UTC](https://forum.ionicframework.com/t/how-to-play-and-pause-the-audio-using-ionic2/91547 "2017-05-24T08:26:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aristocrat\_mobile](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@aristocrat\_mobile](https://forum.ionicframework.com/u/aristocrat_mobile)\
**Post date:** [May 24, 2017, 8:26am UTC](https://forum.ionicframework.com/t/how-to-play-and-pause-the-audio-using-ionic2/91547/1 "2017-05-24T08:26:12Z")

</div>

Hi Guys,

```
I want to develop the sample application for audio using ionic2.

```

I have an 2 buttons i.e. Play & Pause buttons on the View, when the user taps on the play i have to play the audio and when the user taps on pause i have no stop the audio. Can any one help me on this, using ionic2 ?

Thank you in advance !!!

Best Regards,  
Sridhar

---

<div class="post-metadata">

**Author:** ![akshatbhargava123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/akshatbhargava123/32/109845_2.png) [@akshatbhargava123](https://forum.ionicframework.com/u/akshatbhargava123)\
**Post date:** [May 24, 2017, 8:33am UTC](https://forum.ionicframework.com/t/how-to-play-and-pause-the-audio-using-ionic2/91547/2 "2017-05-24T08:33:26Z")

</div>

you can use this library, its easy to use with good documentation and features.

------ [Wave Surfer](https://wavesurfer-js.org/)------

---

<div class="post-metadata">

**Author:** ![planetwp](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@planetwp](https://forum.ionicframework.com/u/planetwp)\
**Post date:** [May 24, 2017, 8:44am UTC](https://forum.ionicframework.com/t/how-to-play-and-pause-the-audio-using-ionic2/91547/3 "2017-05-24T08:44:26Z")

</div>

Hi akshatbhargava123,

Do you have any tips on getting WaveSurfer to work in Ionic 3? I have been trying to get it to work all day and can’t seem to make it happen.
