# Sound played over and over again

**URL:** https://community.thunkable.com/t/sound-played-over-and-over-again/2314808
**Category:** Issues / Bugs
**Tags:** beginner
**Created:** [March 9, 2023, 4:20am UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808 "2023-03-09T04:20:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![nwr](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@nwr](https://community.thunkable.com/u/nwr)
#### Post date: [March 9, 2023, 4:20am UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/1 "2023-03-09T04:20:02Z")

</div>

Hi guys… may you always be happiness!

I mounted the sound file on a button and when I pressed it, the sound played fine.

however, when the sound has not reached the end/finished, I press the button again and the sound plays again without stopping the first sound action,

So, the app plays the same double sounds, can anyone help solve this problem?

At the very least, I need a workaround like this:

A \>

1. When the button is pressed for the first time then the sound will be played.

2. And if the button is pressed for the second time then the sound will be played from the beginning.

B\>

1. When the button is pressed for the first time then the sound will be played.

2. And if the button is pressed a second time, it will not have any effect until the sound is completely finished.

3. If the sound has finished playing then the button works back to No. 1

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 9, 2023, 5:35am UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/2 "2023-03-09T05:35:31Z")

</div>

There is a feature request for this: [No way of knowing if sound playing is done · Issue #1235 · thunkable/thunkable-issues · GitHub](https://github.com/thunkable/thunkable-issues/issues/1235)

Please consider adding a comment to that request. It’s helpful if you also link back here.

---

<div class="post-metadata">

### Author: ![nwr](https://avatars.discourse-cdn.com/v4/letter/n/c37758/32.png) [@nwr](https://community.thunkable.com/u/nwr)
#### Post date: [March 9, 2023, 1:49pm UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/3 "2023-03-09T13:49:24Z")

</div>

Okay… But it means for now, there is no way yet to solve the problem, right?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [March 9, 2023, 3:36pm UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/4 "2023-03-09T15:36:48Z")

</div>

It means that there is not currently a way to determine when a sound has stopped playing.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [March 9, 2023, 5:41pm UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/5 "2023-03-09T17:41:07Z")

</div>

Hello @nwr  
A solution, for now, is to upload two times the same sound with different names and also two buttons one above the other  
When a user clicks for the first time to play the first audio and hide that button and the second time to stop the first audio, play the second one and make visible the first button.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/4349f529c4dda3875024acb672f4bc42ee7fd9fd.png)

Demo app [here](https://x.thunkable.com/projects/6409eec5b56fa41e5a6c97c7/500bb65a-87ee-49ee-8e41-7c44ccd96d2a/blocks)

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:37pm UTC](https://community.thunkable.com/t/sound-played-over-and-over-again/2314808/6 "2024-11-08T13:37:03Z")

</div>


