Weird implementation of the API. It looks like it doesn't work since the kotlin migration.
https://medium.com/@ttdevelopment/converting-speech-to-text-with-recognizerintent-in-android-44be94b50a10