Is there a way to send audio bytes to SpeechRecognizer

720 Views Asked by At

So I'm trying to make an app accessible for deaf/HoH people and so far I'm able to get the audio bytes that is being currently played in the app (I think).

The thing is, can I use this SpeechRecognizer to send the audio bytes and get the text results?

Couldn't find a method for this and I'm wondering if I'm in the right library to perform this task.

I looked up for Speech APIs and I couldn't find nothing for free (obviously) so I'm looking in the android libraries.

Any information is helpful for me.

Question edit: Is there any library or something that could do this speech to text from audio bytes or any other information that need?

1

There are 1 best solutions below

1
TrivPants On
ArrayList<String> data = bundle.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);
editText.setText(data.get(0));

See this Medium post that goes into more detail.