Press on the image to return to the main documentation page.
ICOSTextToSpeech
Written by Giuseppe Salvi
List of types:
ICOSTextToSpeech
ICOSTextToSpeech
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Permissions:
android.permission.READ_SMS
android.permission.RECEIVE_SMS
android.permission.WRITE_SMS
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
jp.co.c_lis.permission.CHANGE_LOCALE
Events:
None
Members:
AddSpeaking
(txt2
As
String
)
ChangeDefaultLanguage
GetEngineByPackageName
As
String
GoLanguageSettings
InitializeTTs
(EventName
As
String
, DefLang
As
String
)
IsInitialized
As
Boolean
PitchToSpeak
(mPitch
As
Float
)
RateToSpeak
(mRate
As
Float
)
ReadAndSpeakSMS
SetEngineByPackageName
(EnginePackageName
As
String
)
SetLanguageToSpeak
ShutDown
Speaking
(txt
As
String
)
StopToSpeak
Version
As
Double
[read only]
WriteAndSpeakText
Members description:
AddSpeaking (txt2
As
String
)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.AddSpeaking="bla bla bla"
End Sub
Add the second text to speaking
ChangeDefaultLanguage
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.ChangeDefaultLanguage
End Sub
Programmatically change the default language of your phone with that choice yourself
GetEngineByPackageName
As
String
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.GetEngineByPackageName
End Sub
Return the current Engine Package Name
GoLanguageSettings
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.LanguageSettings
End Sub
Goes into the language setting to check if it has changed the language you've chosen
InitializeTTs (EventName
As
String
, DefLang
As
String
)
Examples:
Dim tts As ICOSTextToSpeech
tts.InitializeTextToSpeech("tts")
IsInitialized
As
Boolean
PitchToSpeak (mPitch
As
Float
)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.PitchToSpeak=3.5
End Sub
Set the pitch for the speaking
RateToSpeak (mRate
As
Float
)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.RateToSpeak=3.5
End Sub
Set the rate for the speaking
ReadAndSpeakSMS
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.ReadAndSpeakSMS
End Sub
SetEngineByPackageName (EnginePackageName
As
String
)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.SetEngineByPackageName="com.ivona.tts"
End Sub
Set Engine PackageName
SetLanguageToSpeak
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.SetLanguageToSpeak
End Sub
Set the language
ShutDown
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.ShutDown
End Sub
Release the ICOSTextToSpeech.
Speaking (txt
As
String
)
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.Speaking="bla bla bla"
End Sub
Speak the first text
StopToSpeak
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.StopToSpeak
End Sub
Stop the ICOSTextToSpeech.
Version
As
Double
[read only]
Return the version of this library
WriteAndSpeakText
Examples:
Dim tts As ICOSTextToSpeech
Dim b1 As Button
Sub b1_Click
tts.WriteAndSpeakText
End Sub
Top