Android Question Service and TTS - Solved

padvou

Active Member
Licensed User
Longtime User
Can a service module use TTS to speak?
If not how could this be accomplished?
 

padvou

Active Member
Licensed User
Longtime User
I spoke too quickly, perhaps a workaround : why not starting a transparent activity when you want it to speak and close it just after ?
OK, here's the latest version that worked on a chinese tablet.
I'll try it on my HTC this afternoon.
I will work on the project you sent me (thank you very much indeed BTW) because it has many interesting stuff (not only for TTS)
 

Attachments

  • tts.zip
    13.8 KB · Views: 192
Upvote 0

padvou

Active Member
Licensed User
Longtime User
The service stops talking after some time, maybe something to do with the device sleeping???
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
  1. Have you tried to add the PhoneWakeState and especially the PartialLock ?
  2. Have you checked if the service was killed or not ? Perhaps should you use the StartForground ?
 
Upvote 0

padvou

Active Member
Licensed User
Longtime User
  1. Have you tried to add the PhoneWakeState and especially the PartialLock ?
  2. Have you checked if the service was killed or not ? Perhaps should you use the StartForground ?
Phonewakestate is added with PartialLock.
Can I use startat with startforground?
 
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
With PartialLock your app will use more battery power.
Your app talked all night for me @padvou.
Can I use startat with startforground? Yes
 
Upvote 0
Top