Gaurav Vachhani
Gaurav Vachhani

Reputation: 96

Android - Speech Recognition Oflline

I am trying to develop an application with some commands & user inputs. Now Google provided extra parameter EXTRA_PREFER_OFFLINE for API 23+ to use speech recognition always in offline mode.

I have check several answers and there is no specification how to use EXTRA_PREFER_OFFLINE constant below API 23.

Upvotes: 2

Views: 1229

Answers (1)

brandall
brandall

Reputation: 6144

Yes - check out this post about how to configure the device correctly.

EXTRA_PREFER_OFFLINE is only a string constant, which Google 'Now' accepts on any device above 4.1. Just use the string itself instead android.speech.extra.PREFER_OFFLINE

Upvotes: 3

Related Questions