@Implements(android.speech.SpeechRecognizer.class) public class ShadowSpeechRecognizer extends Object
Constructor | Description |
---|---|
ShadowSpeechRecognizer() |
Modifier and Type | Method | Description |
---|---|---|
protected static SpeechRecognizer |
createSpeechRecognizer(Context context,
ComponentName serviceComponent) |
|
static SpeechRecognizer |
getLatestSpeechRecognizer() |
Returns the latest SpeechRecognizer.
|
protected void |
handleChangeListener(RecognitionListener listener) |
Handles changing the listener and allows access to the internal listener to trigger events and
sets the latest SpeechRecognizer.
|
static void |
reset() |
|
protected void |
startListening(Intent recognizerIntent) |
|
void |
triggerOnError(int error) |
|
void |
triggerOnPartialResults(Bundle bundle) |
|
void |
triggerOnResults(Bundle bundle) |
|
void |
triggerOnRmsChanged(float rmsdB) |
public static SpeechRecognizer getLatestSpeechRecognizer()
SpeechRecognizer#createSpeechRecognizer()
is called.@Resetter public static void reset()
@Implementation protected static SpeechRecognizer createSpeechRecognizer(Context context, ComponentName serviceComponent)
@Implementation protected void startListening(Intent recognizerIntent)
@Implementation protected void handleChangeListener(RecognitionListener listener)
public void triggerOnError(int error)
public void triggerOnPartialResults(Bundle bundle)
public void triggerOnResults(Bundle bundle)
public void triggerOnRmsChanged(float rmsdB)