Android Tutorial Voice Recognition Example

Beja

Expert
Licensed User
Longtime User
Hi Erel,
Today I tried the example on the first page and it was running.. but the tts was slower than the voice reco
eg. if you say "hello how are you", the TTS said "are you" or the last words.. Not sure if this issue was raised in the previous pages because I didn't read them all.
I added a sleep function and the TTS played be the full recognized text.

B4X:
Sub VR_Result (Success As Boolean, Texts As List)
    If Success = True Then
        ToastMessageShow(Texts.Get(0), True)
        '____________
        Sleep(1000)
       '-------------
        TTS1.Speak(Texts.Get(0), True)
    End If
End Sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…