Text to Speech event

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.

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

1 Like

This is my block

image

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

Instead of SpeechRecognizer listen, use this :

Thanks to @Domhnall

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