'Service module
Sub Process_Globals
Dim TTS1 As TTS
Dim TTSReady as boolean
End Sub
Sub Service_Create
TTSReady=false
If TTS1.IsInitialized = False Then
TTS1.Initialize("TTS1")
End If
TTS_Settings
End Sub
Sub Service_Start
StartServiceAt("", DateTime.Now + 7*DateTime.TicksPerSecond, True)
if TTSReady then TTS1.Speak("This is my Text",True)
End Sub
Sub Service_Destroy
TTS1.Release
End Sub
Sub TTS_Settings
TTS1.SpeechRate = 1.5
TTS1.Pitch = 1.5
TTS1.SetLanguage("de","")
End Sub
Sub TTS1_Ready (Success As Boolean)
If Success Then TTSReady=True
End Sub