# Text to Speech event

**URL:** https://community.thunkable.com/t/text-to-speech-event/135147
**Category:** Questions about Thunkable X
**Created:** [July 7, 2019, 11:53pm UTC](https://community.thunkable.com/t/text-to-speech-event/135147 "2019-07-07T23:53:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)
#### Post date: [July 7, 2019, 11:53pm UTC](https://community.thunkable.com/t/text-to-speech-event/135147/1 "2019-07-07T23:53:01Z")

</div>

I was wondering how I can capture the end of speech so another action takes effect. Basically I have a play button when clicked converts the text to speech while at same time changes the play image to stop image.

Challenge is there is no way to change the stop button back to play when speech is completed.

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [July 8, 2019, 9:29am UTC](https://community.thunkable.com/t/text-to-speech-event/135147/2 "2019-07-08T09:29:57Z")

</div>

Hey @sysads,

It’s hard to say for certain without seeing what blocks you’ve used - but have you considered using this block in your app?

![16](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/7/c75441b492c33ef6a91bc7e137caa5aa274a4af1.png)

---

<div class="post-metadata">

### Author: ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)
#### Post date: [July 8, 2019, 9:42am UTC](https://community.thunkable.com/t/text-to-speech-event/135147/4 "2019-07-08T09:42:47Z")

</div>

This is my block

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/b/5b63226cf58865a673c1dfe1781c885be3a4cdd8.png)

When i do it this way, it appears to work but only issue if there are other sounds then the stop button won’t appear until all sounds stops

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02d41517610dcede153831aabe5f961245048f92.png)

---

<div class="post-metadata">

### Author: ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)
#### Post date: [July 8, 2019, 2:36pm UTC](https://community.thunkable.com/t/text-to-speech-event/135147/5 "2019-07-08T14:36:31Z")

</div>

Instead of **SpeechRecognizer listen** , use this :

> [@domhnallohanlon](#):
>
> Hey @sysads,
> 
> It’s hard to say for certain without seeing what blocks you’ve used - but have you considered using this block in your app?
> 
> ![16](http://community.thunkable.com/uploads/thunkable1/original/3X/c/7/c75441b492c33ef6a91bc7e137caa5aa274a4af1.png)

Thanks to @Domhnall…

---

<div class="post-metadata">

### Author: ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)
#### Post date: [July 8, 2019, 2:50pm UTC](https://community.thunkable.com/t/text-to-speech-event/135147/6 "2019-07-08T14:50:19Z")

</div>

That was the first thing I did but that changes the button image to stop image long before the speech is completed

---

<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, 12:12pm UTC](https://community.thunkable.com/t/text-to-speech-event/135147/7 "2024-11-08T12:12:20Z")

</div>


