Using the Text to Speech Library

How could I use the Text to Speech library in this project? It keeps saying the time forever and so slowly. Please help me out. Thank you.

Wait a second! The project is not working anymore!

It's speaking slowly because the rate is 0.

Here's how the speech synthesis API works in case you don't know:

The text to say and options such as rate, pitch, and language are passed to the SpeechSynthesisUtterance constructor. A SpeechSynthesisUtterance object is passed to speechSynthesis.speak and it gets added to a queue. While there are SpeechSynthesisUtterance objects in the queue, the first one is spoken then removed from the queue.

I think you should replace the speak block with the speak and wait block. The play sound block restarts the sound each time, but the speak block keeps adding the speech to the queue.

An old project of mine, using the T2S library, works ok.

As snapenilk said, the trick is to use the "SPEAK ... AND WAIT" block.

This is the key point. It's why all your sounds sound like you're gargling. Rate 1 worked for me.

Thanks to all of you.