summaryrefslogtreecommitdiffstats
path: root/core/java/android/speech/RecognizerIntent.java
diff options
context:
space:
mode:
authorCedric Ho <cedricho@google.com>2015-04-27 15:01:46 -0700
committerCedric Ho <cedricho@google.com>2015-04-27 16:17:24 -0700
commitccc6e57848dc5ddc2e3448497517c1c38f8c3482 (patch)
tree63247c179236311edcdf32f85426985b7745e164 /core/java/android/speech/RecognizerIntent.java
parent580c30a63353f67433da25ef7b90913300e0372f (diff)
downloadframeworks_base-ccc6e57848dc5ddc2e3448497517c1c38f8c3482.zip
frameworks_base-ccc6e57848dc5ddc2e3448497517c1c38f8c3482.tar.gz
frameworks_base-ccc6e57848dc5ddc2e3448497517c1c38f8c3482.tar.bz2
Add android.speech.RecognizerIntent EXTRA_PREFER_OFFLINE to indicate
whether to only use an offline speech recognition engine. Change-Id: I15fe9b31f74af1438a018a76a9c7755b43bdc835
Diffstat (limited to 'core/java/android/speech/RecognizerIntent.java')
-rw-r--r--core/java/android/speech/RecognizerIntent.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/speech/RecognizerIntent.java b/core/java/android/speech/RecognizerIntent.java
index e991d84..ce94315 100644
--- a/core/java/android/speech/RecognizerIntent.java
+++ b/core/java/android/speech/RecognizerIntent.java
@@ -403,4 +403,12 @@ public class RecognizerIntent {
*/
public static final String EXTRA_SUPPORTED_LANGUAGES =
"android.speech.extra.SUPPORTED_LANGUAGES";
+
+ /**
+ * Optional boolean, to be used with {@link #ACTION_RECOGNIZE_SPEECH},
+ * {@link #ACTION_VOICE_SEARCH_HANDS_FREE}, {@link #ACTION_WEB_SEARCH} to indicate whether to
+ * only use an offline speech recognition engine. The default is false, meaning that either
+ * network or offline recognition engines may be used.
+ */
+ public static final String EXTRA_PREFER_OFFLINE = "android.speech.extra.PREFER_OFFLINE";
}