I want to do a google glass application that can recognize the words said by others to you. I tries to use the same Android code for voice recognition
@Override
public void onClick(View v) {
Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");
try {
startActivityForResult(i, REQUEST_OK);
} catch (Exception e) {
Toast.makeText(this, "Error initializing speech to text engine.", Toast.LENGTH_LONG).show();
}
}
This didn't work because, this code recognizes only the speech the person putting the glass on his head is saying. I need my application to also recognize the voice of others talks to me.
Anyone could help please?
Thanks