I am working on sms application in android in which user have to input contact by saying the name of recipient. i want this by voice recognition in android but i dont know how to search contacts by voice i e when user speaks a contact name voice search give me the phone number of this particular contact.
is there any way of doing this by using
RecognizerIntent.ACTION_RECOGNIZE_SPEECH
If your app uses RecognizerIntent.ACTION_WEB_SEARCH and the user says “Call Andrew” and “Andrew” is within the contact list, the app will start a phone call to Andrew by looking up that person in the contact list.
Is that your goal?
If you want your app to get the list of possible contacts and process it, then that is going to take more steps. Namely:
perhaps using a phonetic matching algorithm like Soundex