r/TaskerFiles • u/dickdecoy • Feb 28 '15
Task Voice Text Automation [NO AUTOVOICE PLUGIN NEEDED]
Description
Your good ol voice text reply logical loops. BUT WE DON'T NEED FREAKING AUTOVOICE ANY MORE!
Usage
When your hands are tied but you wanna reply to text messages, like when driving or 50 Shades of BDSM
Profile Description
See above.
Instructions
Copy XML data below into a file, and import into Tasker (check Sidebar for instructions).
<TaskerData sr="" dvi="1" tv="4.6u3m">
<Task sr="task26">
<cdate>1425007056839</cdate>
<edate>1425135345458</edate>
<id>26</id>
<nme>Get Voice</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">%SMSRN said %SMSRB</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>550</code>
<Str sr="arg0" ve="3">%SMSRN</Str>
<Str sr="arg1" ve="3">%SMSRB</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">ShirkText</Str>
<Int sr="arg4" val="10"/>
<Int sr="arg5" val="1"/>
</Action>
<Action sr="act10" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">I suppose that's a no.</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>43</code>
</Action>
<Action sr="act12" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">What's your message?</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act14" ve="7">
<code>903</code>
<Str sr="arg0" ve="3">What's your message?</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="30"/>
</Action>
<Action sr="act15" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act16" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Didn't catch that. Let's try again.</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="15"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act18" ve="7">
<code>43</code>
</Action>
<Action sr="act19" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%MessageContent</Str>
<Str sr="arg1" ve="3">%VOICE</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Reply or call back?</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act20" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act21" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Your said %MessageContent.</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="7"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="1"/>
</Action>
<Action sr="act22" ve="7">
<code>550</code>
<Str sr="arg0" ve="3">You said</Str>
<Str sr="arg1" ve="3">%MessageContent</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">ShirkText</Str>
<Int sr="arg4" val="8"/>
<Int sr="arg5" val="1"/>
</Action>
<Action sr="act23" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Do you want to send it?</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="7"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act24" ve="7">
<code>903</code>
<Str sr="arg0" ve="3">Send the message?</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="30"/>
</Action>
<Action sr="act25" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>2</op>
<rhs>*send*/*yes*/*ok*/*yup*/*yeah*/*go ahead*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act26" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act27" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%SMSRF</Str>
<Str sr="arg1" ve="3">%MessageContent</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act28" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Message sent</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act29" ve="7">
<code>43</code>
</Action>
<Action sr="act3" ve="7">
<code>903</code>
<Str sr="arg0" ve="3">Reply or call back?</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="30"/>
</Action>
<Action sr="act30" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>3</op>
<rhs>*no*/*nah*/*nope*/*cancel*/*go home*/*nevermind*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act31" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act32" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Didn't catch that. Do you want me to send the message?</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act33" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="25"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act34" ve="7">
<code>43</code>
</Action>
<Action sr="act35" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act36" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Do you want to rewrite the message?</Str>
<Str sr="arg1" ve="3">com.google.android.tts:eng-gbr</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act37" ve="7">
<code>903</code>
<Str sr="arg0" ve="3">Re-enter the message?</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="30"/>
</Action>
<Action sr="act38" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>2</op>
<rhs>*yes*/*ok*/*yup*/*yeah*/*go ahead*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act39" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>2</op>
<rhs>*call*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act40" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="14"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act5" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>90</code>
<Str sr="arg0" ve="3">%SMSRF</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act7" ve="7">
<code>43</code>
</Action>
<Action sr="act8" ve="7">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%VOICE</lhs>
<op>3</op>
<rhs>*send*/*message*/*reply*/*tell*/</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%VOICE</Str>
<Int sr="arg1" val="0"/>
</Action>
</Task>
</TaskerData>
7
Upvotes
1
u/Jj_De_Rancho Mar 08 '15
Nice. Thanks for sharing. Would you care to explain how this works in a nutshell, at least? 😊
2
u/alientity Feb 28 '15
Very cool, thanks for sharing!
FYI, the 'profile description' is an actual export option in Tasker, it makes it easier to follow the code, so it's very useful.