How to change speech to text and text to speech settings via variables?

In order to change speech to text and text to speech depending on the context, you can use the speechLang and textLang variables.

speechLang is for speech to text.

textLang is for text to speech.

You need to set them up according to the values in this link :