im using below code for speech to text for Raspberry Pi3
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
try {
startActivityForResult(intent, RESULT_SPEECH);
} catch (ActivityNotFoundException a) {
a.printStackTrace();
}
But code not works it gives exception as
device does not support Speech to text
Is there any way to support speech to text for Raspberry Pi using android things or any package or apk need to install on Raspberry Pi to support Speech to text. Please help