I'm trying to use the voice recognition in B4A but I keep on getting the error message:
Compiling code. Error
Error parsing program.
Error description: Unknown type: voicerecognition
Are you missing a library reference?
Occurred on line: 5
Dim VR As VoiceRecognition
Here is my code:
Any suggestions?
PS: Can you test the VR in the emulator?
Compiling code. Error
Error parsing program.
Error description: Unknown type: voicerecognition
Are you missing a library reference?
Occurred on line: 5
Dim VR As VoiceRecognition
Here is my code:
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim VR As VoiceRecognition
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("VR1")
VR.Initialize("VR")
VR.Listen
End Sub
Sub btnBegin_Click
VR.Listen
End Sub
Sub VR_Result (Success As Boolean, Texts As List)
If Success = True Then
For i = 0 To Texts.Size -1
Log (Texts.Get(i))
Next
End If
End Sub
Sub Activity_Resume
End Sub
Any suggestions?
PS: Can you test the VR in the emulator?