SpeechRecognizer

Last Updated On 2021-07-16

Version 2MinSDK 7Tutorial Video

Component for using Voice Recognition to convert from speech to text


Properties

You can set the below properties in the UI part of the builder.

  • UseLegacy - it's a boolean value which is set to true by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

Result

Returns the last text produced by the recognizer.


UseLegacy

If true, an app can retain their older behaviour.



Methods

You can set the below method blocks in the blocks section of the builder.

GetText

Asks the user to speak, and converts the speech to text. Signals the

Stop

Function used to forcefully stop listening speech in cases where SpeechRecognizer cannot stop automatically. This function works only when the


Events

You can set the below event blocks in the blocks section of the builder.

AfterGettingText

Simple event to raise after the SpeechRecognizer has recognized speech. If

BeforeGettingText

Simple event to raise when the `SpeechRecognizer` is invoked but before its activity is started.