tags:

views:

109

answers:

2

From what I've read, speech recognition is available for 3 languages: English (UK, US, Au ..), Japanese and Chinese (Mandarin).

Does anyone know more details about how to switch between these languages? Is there a way to know (programatically) which language is active for speech recognition on a certain device? (maybe in Japan the only have Japanese ... but can I get this information somehow ... like a property or anything?).

Any help regarding this will be appreciated.

Thanks guys.

A: 

You might want to take a look at android.speech.RecognizerIntent It looks like you can get Language support info from there by calling getVoiceDetailsIntent().

Have a look at the API docs here

gedionki
A: 

Did you manage to get this working?

I tried:

Intent i = RecognizerIntent.getVoiceDetailsIntent(this); sendOrderedBroadcast(i, null, new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Bundle b = intent.getExtras(); Log.i(TAG, "bundle: " + b); } }, null, Activity.RESULT_OK, null, null);

and the onReceive() method is called but the bundle is null...

Mark