Speech To Text in Android using Xamarin

On this fine day of Teacher’s Day, my mentor from Aditi asked me if I know any samples on creating a simple app for Speech to Text recognition in Android. I searched on the net but did not find much result. So then I thought, why not I create a sample, push it in Git and send him the link.

So after an hour the sample was done and pushed to Git. Xamarin allows the use of Android APIs to be utilized in a very easy way.

In just few lines of code I was able to use the RecognizerIntent to launch an activity that will prompt the user for speech and send it through a speech recognizer. The results will be returned via activity results in the event handler OnActivityResult.

The sample can be downloaded and used as is from here.

Anubhav Ranjan

Anubhav Ranjan

Technical Advisor at Microsoft

Before becoming a Microsoft FTE, Anubhav was a Microsoft MVP, awarded twice consecutively for standing out in the community.

Anubhav is a Program Freak who loves coding and currently works as a Technical Advisor at Microsoft. He is very much passionate about Coding and loves developing Mobile Apps. At present, he helps C# Developers in taking their code across platforms. Also, pretty much interested in the latest ongoing trend which is Bots and AI. Currently working on Microsoft Bot Framework as well.

He is an active member of the BDotnet(Bangalore .NET) User Group and Speaker/Member of XHackers - A Community for Cross-Platform App Development.
Anubhav Ranjan

Read 7 comments

  1. Pingback: Roque Santa

  2. Hello, can we do video voice to text convert with this method ? i want to learn, can we convert to video sound speech to text ? so our sound source for speech to text, can be a video or wav file ?

Leave a Reply