Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdd0ac6d authored by Brandon Ballinger's avatar Brandon Ballinger Committed by The Android Open Source Project
Browse files

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
parent e96440fa
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();