Text to speech library in Android kotlin

I’m totally new to kotlin and I want to be able to use the text to speech library
Let’s say I want to reproduce the text on a variable
texttospeech = “some text”
How to reproduce texttospeech?
Thanks for any help