• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

use tts to read random lines from a text file

CarsnGadgets

Android Expert
May 17, 2010
1,067
252
UK
I am trying to use tasker to read at random any 1 of 3 lines of text from a text file on my /SD when I ask it "how are you?"



I have the lines set out like this in the text file:

great, how are you
;;;

fine thanks
;;;

not so good
;;;

I have tried using the "File" action and "Read Line", and know I have to put %VOICE ~ *how are you* in the bottom box, but dont know what to put in the other text fields (Line and to Var)?

for the sake of this post assume my text file is called "responses.txt"

can anyone talk me through step be step how to do this?
(I am a complete beginner, so please assume I know nothing about tasker.)

Thanks in advance.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones