I am building a custom keyboard app(in android studio) in which I added a microphone key. I wanted to convert the recorded speech to text so I used speechrecognizer. But I also