So I've tried what I want in the TTS ID example and I still get the error
this is the code, hope it makes sense!
Sub Activity_Create(FirstTime As Boolean)
tts.Initialize(Me,"TTS")
Activity.LoadLayout("1")
Dim OK As Object
OK = tts.SetLanguage("en","US")
Log(OK)
If OK = True Then tts.Speak("Here is a simple text app, i can talk any text",False)
End Sub
and the error
** Activity (main) Create, isFirst = true **
true
main_activity_create (java line: 369)
java.lang.RuntimeException: Error speaking text.
at anywheresoftware.b4a.obejcts.TTS.Speak(TTS.java:62)
at b4a.example.ttsid._vv7(ttsid.java:287)
at tts.example.id.main._activity_create(main.java:369)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at tts.example.id.main.afterFirstLayout(main.java:105)
at tts.example.id.main.access$000(main.java:17)
at tts.example.id.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7397)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)