'part of the Main Code:
Try
If TTS1.IsInitialized = False Then
TTS1.Initialize("TTS1")
End If
Dim sr As Float = ((Page_Setup.pm_Speed.SelectedValue-10)*0.05) + 1
TTS1.SpeechRate = sr 'default = 1
TTS_Service.Speek(sb_1.ToString,TTS1)
Sleep(1000)
TTS_Service.Speek(sb_2.ToString,TTS1)
'in the Code Moule
Sub Speek(Text As String, tts_Target As TTS)
Dim p As Phone
Dim jo As JavaObject
jo.InitializeNewInstance("java.util.HashMap", Null)
jo.RunMethod("put", Array("streamType", "" & p.VOLUME_ALARM))
Dim jts As JavaObject = tts_Target
jts.RunMethod("speak", Array(Text, 1, jo)) '0 = QUEUE_FLUSH, 1 = QUEUE_ADD
End Sub