I developed an app using the Android 4.1.2 and speech to text is working well but when I tried it on the Google Glass it is not working(Activity not found exception). This is my Speech to text Code
Intent intent = new Intent(
RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, "en-US");
try {
startActivityForResult(intent, requestCode);
} catch (ActivityNotFoundException a) {
Toast t = Toast.makeText(getApplicationContext(),
"Opps! Your device doesn't support Speech to Text",
Toast.LENGTH_SHORT);
}
I tried to install the Speech Synthesis apk manually but when I tried to start the speech synthesis app crashed. Is there a way to install the speech synthasizer or is there a workaround code for the speech to text to work in the Google Glass?