android.speech
Class SpeechRecognizer

java.lang.Object
  extended by android.speech.SpeechRecognizer

public class SpeechRecognizer
extends Object


Field Summary
static String CONFIDENCE_SCORES
           
static int ERROR_AUDIO
           
static int ERROR_CLIENT
           
static int ERROR_INSUFFICIENT_PERMISSIONS
           
static int ERROR_NETWORK
           
static int ERROR_NETWORK_TIMEOUT
           
static int ERROR_NO_MATCH
           
static int ERROR_RECOGNIZER_BUSY
           
static int ERROR_SERVER
           
static int ERROR_SPEECH_TIMEOUT
           
static String RESULTS_RECOGNITION
           
 
Method Summary
 void cancel()
           
static SpeechRecognizer createSpeechRecognizer(Context context)
           
static SpeechRecognizer createSpeechRecognizer(Context context, ComponentName serviceComponent)
           
 void destroy()
           
static boolean isRecognitionAvailable(Context context)
           
 void setRecognitionListener(RecognitionListener listener)
           
 void startListening(Intent recognizerIntent)
           
 void stopListening()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULTS_RECOGNITION

public static final String RESULTS_RECOGNITION
See Also:
Constant Field Values

CONFIDENCE_SCORES

public static final String CONFIDENCE_SCORES
See Also:
Constant Field Values

ERROR_NETWORK_TIMEOUT

public static final int ERROR_NETWORK_TIMEOUT
See Also:
Constant Field Values

ERROR_NETWORK

public static final int ERROR_NETWORK
See Also:
Constant Field Values

ERROR_AUDIO

public static final int ERROR_AUDIO
See Also:
Constant Field Values

ERROR_SERVER

public static final int ERROR_SERVER
See Also:
Constant Field Values

ERROR_CLIENT

public static final int ERROR_CLIENT
See Also:
Constant Field Values

ERROR_SPEECH_TIMEOUT

public static final int ERROR_SPEECH_TIMEOUT
See Also:
Constant Field Values

ERROR_NO_MATCH

public static final int ERROR_NO_MATCH
See Also:
Constant Field Values

ERROR_RECOGNIZER_BUSY

public static final int ERROR_RECOGNIZER_BUSY
See Also:
Constant Field Values

ERROR_INSUFFICIENT_PERMISSIONS

public static final int ERROR_INSUFFICIENT_PERMISSIONS
See Also:
Constant Field Values
Method Detail

isRecognitionAvailable

public static boolean isRecognitionAvailable(Context context)

createSpeechRecognizer

public static SpeechRecognizer createSpeechRecognizer(Context context)

createSpeechRecognizer

public static SpeechRecognizer createSpeechRecognizer(Context context,
                                                      ComponentName serviceComponent)

setRecognitionListener

public void setRecognitionListener(RecognitionListener listener)

startListening

public void startListening(Intent recognizerIntent)

stopListening

public void stopListening()

cancel

public void cancel()

destroy

public void destroy()


Copyright © 2008-2012. All Rights Reserved.