Marwan Jaber
Marwan Jaber

Reputation: 641

Google glass voice recognition

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

Upvotes: 1

Views: 273

Answers (1)

Pull
Pull

Reputation: 2246

If the other person is close enough of the microphone, it should work.

The problem here is about the hardware not the code, the microphone is only receiving the voice of the person around it, if you are too far it won't work.

Upvotes: 1

Related Questions