hi,
I have more activities and each may utilize Text to speach.
how I can organize then program?
Activity1 ----file txt aaa-----
Activity2 ----file txt bbb----- Text to speach aaa, bbb, ccc
activity3 ----file txt ccc-----
What can I write in Activities 1 2 3, what can I create for Text to Speach (module code or other?) and what can I write and where for initialize TTs?
Thanks
Bill Meyer, yes, I know this example, but it work in only one activity. I don't want start a new activity for TTS from my activities 1 2 3.
I want to know how call tts from activity 1 2 3.
Erel, Unfortunately I did not succeed
-main and starter-
What should I write in main to load starter and speach a variable memorized in main?
I am very sad :/
Note that I could have made tts a public variable and access it directly. However generally speaking it is better to keep it private and only access it from its own module.
Please use [code]code here...[/code] tags when posting code.
TTS doesn't provide a method to stop or pause playback. You can call speak again with a very short text or empty text (you need to try it) and with ClearQueue parameter set to true to stop playback.