TTS gets killed when device rotated

U

unba1300

Guest
Hi,
I'm using the TTS library to speak a large amount of text within an edittext. But when the device is rotated, the process stops. Is there some way to save its position in Pause and continue from there in Resume? Maybe using a combination of text.length, a percentage, and SelectionStart?
 
U

unba1300

Guest
I had this in Activity_Resume...
B4X:
If TTS1.IsInitialized = False Then
  TTS1.Initialize("TTS1") 
End If
And this in Activity_Pause...
B4X:
TTS1.Release
As per the TTS tutorial. So I commented out TTS1.Release and now speech continues. But what will be the negative of not using TTS1.Release? Thanks.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…