Android Programming Press on the image to return to the main documentation page.

iSpeechRecognition

List of types:

SpeechRecognition

SpeechRecognition

Provides access to the device speech recognition (speech to text) feature.
This feature is only available on iOS 10+.
Make sure to add the NSSpeechRecognitionUsageDescription and NSMicrophoneUsageDescription keys to the plist.

Events:

AuthorizationStatusChanged (Status As int)
Result (Success As Boolean, IsFinal As Boolean, Texts As List)

Members:


  AUTHORIZATION_DENIED As Int [read only]

  AUTHORIZATION_NOT_DETERMINED As Int [read only]

  AUTHORIZATION_RESTRICTED As Int [read only]

  DefaultLanguage As String [read only]

  Initialize (EventName As String)

  IsAuthorized As Boolean [read only]

  SetLanguage (Language As String) As Boolean

  StartRecording (ReportPartialResults As Boolean)

  StopRecording

  SupportedLanguages As List

Members description:

AUTHORIZATION_DENIED As Int [read only]
Speech recognition services are disabled or the user denied access for this application.
AUTHORIZATION_NOT_DETERMINED As Int [read only]
AUTHORIZATION_RESTRICTED As Int [read only]
Application is not authorized and user is restricted from changing its state (parental control for example).
DefaultLanguage As String [read only]
Returns the device default language.
Initialize (EventName As String)
Initializes the object and sets the subs that will handle the events.
The AuthorizationStatusChanged event will be raised.
IsAuthorized As Boolean [read only]
Returns true if your app is authorized to access the location services.
SetLanguage (Language As String) As Boolean
Sets the engine language.
The SupportedLanguages property returns a list with the supported languages.
This method returns True is the engine is ready. It will return false if the language is not supported or if the engine is not available.
For example if there is no Internet connection.
StartRecording (ReportPartialResults As Boolean)
Starts audio capturing. The Result event will be raised.
ReportPartialResults - Whether to return partial results when such are available. If False then the Result event will only be called once
after StopRecording is called.
StopRecording
Stops recording. The Ready event will be raised.
SupportedLanguages As List
Returns a List with the supported languages (two letters code).
Top