Skip to content

Commit ec7fdd2

Browse files
author
Chris Bellew
committed
Updated Tasker project file.
1 parent 53c9ec8 commit ec7fdd2

File tree

2 files changed

+64
-39
lines changed

2 files changed

+64
-39
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.gradle
22
local.properties
33
app/build
4+
Voice Control For Plex/build

Voice Control For Plex Library/src/main/assets/VoiceControlForPlex.prj.xml

Lines changed: 63 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<TaskerData sr="" dvi="1" tv="4.2u3">
2-
<Profile sr="prof120" ve="2">
3-
<cdate>1400722336080</cdate>
2+
<Profile sr="prof148" ve="2">
3+
<cdate>1400797081692</cdate>
44
<clp>true</clp>
55
<edate>1400727519979</edate>
6-
<id>120</id>
7-
<mid0>116</mid0>
6+
<id>148</id>
7+
<mid0>144</mid0>
88
<nme>Voice Control For Plex (AutoVoice)</nme>
99
<State sr="con0">
1010
<code>20126</code>
@@ -39,9 +39,9 @@
3939
<TriggerWordRegex>false</TriggerWordRegex>
4040
<TriggerWordRegex-type>java.lang.Boolean</TriggerWordRegex-type>
4141
<com.twofortyfouram.locale.intent.extra.BLURB>Event Behaviour: true
42-
Command: "^(resume watching |watch |listen to ) (regex)"</com.twofortyfouram.locale.intent.extra.BLURB>
42+
Command: "^(((watch|resume watching|listen to) )|((offset|timecode) (.*))|((pause|stop|resume) playback))(on )? (regex)"</com.twofortyfouram.locale.intent.extra.BLURB>
4343
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
44-
<configcommand>^(resume watching |watch |listen to )</configcommand>
44+
<configcommand>^(((watch|resume watching|listen to) )|((offset|timecode) (.*))|((pause|stop|resume) playback))(on )?</configcommand>
4545
<configcommand-type>java.lang.String</configcommand-type>
4646
<configcommandid>&lt;null&gt;</configcommandid>
4747
<configcommandid-type>java.lang.String</configcommandid-type>
@@ -83,11 +83,12 @@ All recognized commands without filter
8383
<Str sr="arg2" ve="3">AutoVoice Recognized</Str>
8484
</State>
8585
</Profile>
86-
<Profile sr="prof121" ve="2">
87-
<cdate>1400722336087</cdate>
86+
<Profile sr="prof149" ve="2">
87+
<cdate>1400797081698</cdate>
88+
<clp>true</clp>
8889
<edate>1400727534640</edate>
89-
<id>121</id>
90-
<mid0>118</mid0>
90+
<id>149</id>
91+
<mid0>147</mid0>
9192
<nme>Voice Control For Plex (utter!)</nme>
9293
<Event sr="con0" ve="2">
9394
<cname>Voice Data</cname>
@@ -102,17 +103,17 @@ All recognized commands without filter
102103
<Project sr="proj0">
103104
<cdate>1377124751229</cdate>
104105
<name>VoiceControlForPlex</name>
105-
<pids>121,120</pids>
106-
<tids>116,118,117</tids>
106+
<pids>148,149</pids>
107+
<tids>145,144,147,146</tids>
107108
<Img sr="icon" ve="2">
108109
<cls>com.atomjack.vcfplib.MainActivity</cls>
109110
<pkg>com.atomjack.vcfp</pkg>
110111
</Img>
111112
</Project>
112-
<Task sr="task116">
113+
<Task sr="task144">
113114
<cdate>1400192106190</cdate>
114115
<edate>1400727519979</edate>
115-
<id>116</id>
116+
<id>144</id>
116117
<Action sr="act0" ve="3">
117118
<code>22851</code>
118119
<Bundle sr="arg0">
@@ -130,10 +131,24 @@ All recognized commands without filter
130131
<Int sr="arg3" val="0"/>
131132
</Action>
132133
</Task>
133-
<Task sr="task117">
134+
<Task sr="task145">
135+
<cdate>1400796521385</cdate>
136+
<edate>1400797125762</edate>
137+
<id>145</id>
138+
<nme>SetCommands</nme>
139+
<pri>10</pri>
140+
<Action sr="act0" ve="3">
141+
<code>547</code>
142+
<Str sr="arg0" ve="3">%Commands</Str>
143+
<Str sr="arg1" ve="3">^(((watch|resume watching|listen to) )|((offset|timecode) (.*))|((pause|stop|resume) playback))(on )?</Str>
144+
<Int sr="arg2" val="0"/>
145+
<Int sr="arg3" val="0"/>
146+
</Action>
147+
</Task>
148+
<Task sr="task146">
134149
<cdate>1376944785561</cdate>
135150
<edate>1400727723455</edate>
136-
<id>117</id>
151+
<id>146</id>
137152
<nme>VoiceControlForPlex</nme>
138153
<Action sr="act0" ve="3">
139154
<code>547</code>
@@ -163,29 +178,38 @@ All recognized commands without filter
163178
<pkg>com.brandall.nutter</pkg>
164179
</Img>
165180
</Task>
166-
<Task sr="task118">
181+
<Task sr="task147">
167182
<cdate>1376675516238</cdate>
168-
<edate>1400727730583</edate>
169-
<id>118</id>
183+
<edate>1400797175710</edate>
184+
<id>147</id>
170185
<nme>VoiceDataReceiver</nme>
171186
<pri>10</pri>
172187
<Action sr="act0" ve="3">
188+
<code>130</code>
189+
<Str sr="arg0" ve="3">SetCommands</Str>
190+
<Int sr="arg1" val="0"/>
191+
<Int sr="arg2" val="10"/>
192+
<Str sr="arg3" ve="3"/>
193+
<Str sr="arg4" ve="3"/>
194+
<Str sr="arg5" ve="3"/>
195+
</Action>
196+
<Action sr="act1" ve="3">
173197
<code>547</code>
174198
<label>Used in the loop below</label>
175199
<Str sr="arg0" ve="3">%voice_data_count</Str>
176200
<Str sr="arg1" ve="3">1</Str>
177201
<Int sr="arg2" val="1"/>
178202
<Int sr="arg3" val="0"/>
179203
</Action>
180-
<Action sr="act1" ve="3">
204+
<Action sr="act10" ve="3">
181205
<code>547</code>
182-
<label>Set the loop count to the voice data size</label>
183-
<Str sr="arg0" ve="3">%voice_data_size</Str>
184-
<Str sr="arg1" ve="3">%voice_data(#)</Str>
185-
<Int sr="arg2" val="1"/>
206+
<label>Set the voice response for utter!</label>
207+
<Str sr="arg0" ve="3">%response</Str>
208+
<Str sr="arg1" ve="3">Tasker didn't understand </Str>
209+
<Int sr="arg2" val="0"/>
186210
<Int sr="arg3" val="0"/>
187211
</Action>
188-
<Action sr="act10" ve="3">
212+
<Action sr="act11" ve="3">
189213
<code>2272</code>
190214
<label>Speak the response</label>
191215
<Bundle sr="arg0">
@@ -219,23 +243,31 @@ All recognized commands without filter
219243
<Int sr="arg3"/>
220244
</Action>
221245
<Action sr="act2" ve="3">
246+
<code>547</code>
247+
<label>Set the loop count to the voice data size</label>
248+
<Str sr="arg0" ve="3">%voice_data_size</Str>
249+
<Str sr="arg1" ve="3">%voice_data(#)</Str>
250+
<Int sr="arg2" val="1"/>
251+
<Int sr="arg3" val="0"/>
252+
</Action>
253+
<Action sr="act3" ve="3">
222254
<code>39</code>
223255
<label>Loop through the voice data</label>
224256
<Str sr="arg0" ve="3">%voice_data</Str>
225257
<Str sr="arg1" ve="3">1:%voice_data_size</Str>
226258
</Action>
227-
<Action sr="act3" ve="3">
259+
<Action sr="act4" ve="3">
228260
<code>37</code>
229261
<label>Compare each voice data string to each command</label>
230262
<lhs>%voice_data(%voice_data_count)</lhs>
231263
<op>11</op>
232264
<rhs>%Commands</rhs>
233265
</Action>
234-
<Action sr="act4" ve="3">
266+
<Action sr="act5" ve="3">
235267
<code>300</code>
236268
<label>A command has been matched! The number of the command in your master command array, corresponds to the task that will now be performed.</label>
237269
</Action>
238-
<Action sr="act5" ve="3">
270+
<Action sr="act6" ve="3">
239271
<code>130</code>
240272
<label>Break loops &amp; perform corresponding task</label>
241273
<Str sr="arg0" ve="3">VoiceControlForPlex</Str>
@@ -245,29 +277,21 @@ All recognized commands without filter
245277
<Str sr="arg4" ve="3"/>
246278
<Str sr="arg5" ve="3"/>
247279
</Action>
248-
<Action sr="act6" ve="3">
280+
<Action sr="act7" ve="3">
249281
<code>38</code>
250282
<label>No match</label>
251283
</Action>
252-
<Action sr="act7" ve="3">
284+
<Action sr="act8" ve="3">
253285
<code>547</code>
254286
<Str sr="arg0" ve="3">%voice_data_count</Str>
255287
<Str sr="arg1" ve="3">%voice_data_count+1</Str>
256288
<Int sr="arg2" val="1"/>
257289
<Int sr="arg3" val="0"/>
258290
</Action>
259-
<Action sr="act8" ve="3">
291+
<Action sr="act9" ve="3">
260292
<code>40</code>
261293
<label>End of loops with no matches</label>
262294
</Action>
263-
<Action sr="act9" ve="3">
264-
<code>547</code>
265-
<label>Set the voice response for utter!</label>
266-
<Str sr="arg0" ve="3">%response</Str>
267-
<Str sr="arg1" ve="3">Tasker didn't understand </Str>
268-
<Int sr="arg2" val="0"/>
269-
<Int sr="arg3" val="0"/>
270-
</Action>
271295
<Img sr="icn" ve="2">
272296
<cls>com.brandall.nutter.ActivityHomeFragment</cls>
273297
<pkg>com.brandall.nutter</pkg>

0 commit comments

Comments
 (0)