hi all,
where is my mistake ?
but in Logs i have this sequence:
Start
Start
Start
Finish
Finish
Start
Start
....
...
..
Finish
Finish
i not listen sequence as:
Hello world this is number 1
Hello world this is number 2
Hello world this is number 3
Hello world this is number 4
but always in no particular order
where is my mistake ?
B4X:
For i = 1 to 10
dim Voice as string
Voice = "Hello world this is number " & i
Wait For (OraParla(Voice)) Complete (Dummy as int)
next
B4X:
private Sub OraParla (voice As String) As ResumableSub
Dim jo As JavaObject = tts1
Log("Start")
Do While jo.RunMethod("isSpeaking",Null) = True
Sleep(200)
Loop
tts1.Speak(voice, False)
Do While jo.RunMethod("isSpeaking",Null) = True
Sleep(300)
Loop
Log("Finish")
Return 0
End Sub
Start
Start
Start
Finish
Finish
Start
Start
....
...
..
Finish
Finish
i not listen sequence as:
Hello world this is number 1
Hello world this is number 2
Hello world this is number 3
Hello world this is number 4
but always in no particular order