summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Ballinger <nobody@android.com>2009-05-07 14:24:02 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-05-07 14:24:02 -0700
commitcdd0ac6d85f5530dc88e73b0b51f44708c804b55 (patch)
tree6e4ce5355c52ac21bf771bba7a5de7b574d33469
parente96440fa15b9158690996dd1e5ef2096099d5388 (diff)
AI 148484: (1) Pass recognizer intent to RecognitionService when starting to listen.
(2) Return error strings to client rather than error types. Automated import of CL 148484
-rw-r--r--core/java/android/speech/IRecognitionService.aidl5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/speech/IRecognitionService.aidl b/core/java/android/speech/IRecognitionService.aidl
index 8f069769cf83..36d12e9aae64 100644
--- a/core/java/android/speech/IRecognitionService.aidl
+++ b/core/java/android/speech/IRecognitionService.aidl
@@ -16,7 +16,7 @@
package android.speech;
-import android.os.Bundle;
+import android.content.Intent;
import android.speech.IRecognitionListener;
// A Service interface to speech recognition. Call startListening when
@@ -26,7 +26,8 @@ import android.speech.IRecognitionListener;
/** {@hide} */
interface IRecognitionService {
// Start listening for speech. Can only call this from one thread at once.
- void startListening(in Bundle recognitionParams,
+ // see RecognizerIntent.java for constants used to specify the intent.
+ void startListening(in Intent recognizerIntent,
in IRecognitionListener listener);
void cancel();