pilot51 / voicenotify

Android app that speaks notifications
https://voicenotify.app
Apache License 2.0
150 stars 54 forks source link

tts text replacement #71

Closed jeffrypabuaran closed 2 years ago

jeffrypabuaran commented 6 years ago

i want to ask, how to build tts text replacement? and are you use a database for the text replacement?

pilot51 commented 6 years ago

You're asking how to implement it for your own project?

It extends DialogPreference and as such is saved to shared preferences. You can see the code in TextReplacePreference.java.

jeffrypabuaran commented 6 years ago

thank you.. one more question, if i use sqlite to save text replacement, what code i have to implement?

On May 16, 2018 6:34 AM, "Mark Injerd" notifications@github.com wrote:

You're asking how to implement it for your own project?

It extends DialogPreference and as such is saved to shared preferences. You can see the code in TextReplacePreference.java https://github.com/pilot51/voicenotify/blob/master/app/src/main/java/com/pilot51/voicenotify/TextReplacePreference.java .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pilot51/voicenotify/issues/71#issuecomment-389347446, or mute the thread https://github.com/notifications/unsubscribe-auth/Ai9H5KmV5_8LJ5rjdrrhFofp8ThD-Vm7ks5ty2YegaJpZM4T-5vu .

pilot51 commented 6 years ago

That would not be a simple answer, certainly nothing I can provide in the 10 minutes I have until I leave for work. I would suggest you understand the class I provided and how SQLite works. ORMLite might make things a little easier. Once you reasonably understand them, it shouldn't be too difficult to implement, just a bit time-consuming.