July 2018
Beginner to intermediate
668 pages
16h 29m
English
Open the project group containing the mobile app and the VCL application.
In the mobile application, we have an empty form with a label on it aligned to the client. At the form startup (one second after form creation), we configure the TTS engine with the following code:
procedure TMainForm.Timer1Timer(Sender: TObject); begin Timer1.Enabled := False; FTTS := TJTextToSpeech.JavaClass.init(TAndroidHelper.Context, FTTSListener); end;
The FTTSListener instance is a TJavaLocal descendent implementing the required JTextToSpeech_OnInitListener interface. The TTS system is getting initialized and, when done, the listener onInit method is called (check the unit TTSListenerU.pas). However, if the TTS engine is correctly initialized, ...
Read now
Unlock full access