I’m trying to use TTS library
I always have an error during TTS initialization
This is the routine that traps the error
After the following code :
language=1
TTS1.Initialize("TTS1")
This is may manifest file
I always have an error during TTS initialization
This is the routine that traps the error
After the following code :
language=1
TTS1.Initialize("TTS1")
Private Sub TTS1_Ready (Success As Boolean) If Success Then TTS1.SpeechRate = 0.8 TTS1.Pitch = 0.7 Select Case language Case 1 TTS1.SetLanguage("it","IT") Case 2 TTS1.SetLanguage("fr","FR") Case 3 TTS1.SetLanguage("en","EN") Case 4 TTS1.SetLanguage("es","ES") End Select Else Msgbox("Error initializing TTS engine.", "") End If End Sub |
This is may manifest file
'This code will be applied to the manifest file during compilation. 'You do not need to modify it in most cases. 'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136 ''' PERMISSIONS : https://developer.android.com/reference/android/Manifest.permission AddManifestText( <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") CreateResourceFromFile(Macro, Themes.LightTheme) SetApplicationAttribute(android:usesCleartextTraffic, "true") SetActivityAttribute (Main, android:screenOrientation, "portrait") SetActivityAttribute (Page2, android:screenOrientation, "portrait") SetActivityAttribute(Selezione_Tempo,android:theme,@android:style/Theme.Dialog) 'End of default text. Any IDEA about the fault ? Regards |