![use android as microphone for event use android as microphone for event](https://www.androidheadlines.com/wp-content/uploads/2019/09/01.2.2-How-to-Google-Assistant-Chromebook-AH-2019-1420x888.jpg)
The RecognizerIntent is the really the core of what converts speech to text. Assuming that there is a microphone, we can set up a new voice intent RecognizerIntent. We'll do some setup here for the voice recognition including checking for the existence of a mic on the device. Next we'll need to make some changes to the OnCreate method.
![use android as microphone for event use android as microphone for event](https://img.i-scmp.com/cdn-cgi/image/fit=contain,width=425,format=auto/sites/default/files/styles/768x768/public/2013/03/29/facebook_event_cajc101_34501113.jpg)
Private FilterCellFactory mFilterCellFactory [Activity(Label = "Full Filter Sample", Icon = class FullFilterActivity : Activity We'll add a couple of new objects to the sample including a record button and a bool that lets us check the current recording state.
![use android as microphone for event use android as microphone for event](https://i1.wp.com/www.micreviews.com/wp-content/uploads/2018/12/best-microphones-for-Android-mobile-devices.jpg)
Much like we did in our Xamarin.iOS sample, we'll modify the FullFilter sample so that it supports voice recognition on Xamarin.Android. Google and Xamarin both have some documentation related to the Android.Speech that can be helpful when starting out. It is more explicitly for converting speech to text and vice versa. There isn't any element of interepretation in Google's implementation. It works somewhat similarly to Apple's solution in that it also uses an off device server to handle recognition (at least by default). Unlike Apple's Speech API that was added very recently, Android.Speech has been around for many years. In this article we'll examine how you can integrate speech recognition into your Xamarin.Android application using the Android.Speech API to create a FlexGrid with filtering that is driven by speech recognition.
#Use android as microphone for event for android#
Google also has something similar for Android that gives you some of the same opportunities for incorporating speech recognition into your Android App. A few weeks back we looked at using the new Speech API that Apple added into their iOS 10 release.