The <auto_save: "true"> parameter cancels <action_after:"audio">

40° shared this idea 30 days ago
Gathering feedback

Problem statement: I'm riding a bike along a bad forest road with holes, puddles, tree roots and rocks. It's hard to take your hands off the steering wheel. It is necessary to constantly take notes on the track.
Expected result: I press the remote control button - the tasker sends the intent Locus - The Locus records my voice and saves it to the point of the track.

I can't get a result.
It turns out either to record a voice without saving a point (A1) or to record a point without saving a voice (A2).

I propose such a revision:
<auto_save: "true(7)"> - where 7 is the time in seconds for voice recording, after which the point will be saved.

But it would be ideal for the voice to be recorded (through the headset) even if the phone is with the screen off (in winter in a warm clothes pocket in the cold).

P.S.

Statement of the problem (including about the warm pocket)I didn't make it up, that's how I ride a bike. :-)


Task: POI Add By Voice
A1: Send Intent [
Action: com.asamm.locus.ACTION_TASK
Cat: None
Extra: tasks: { track_record
: { action: "add_wpt", auto_save: "true", action_after:"audio"} }
Target: Broadcast Receiver ]

A2: Send Intent [
Action: com.asamm.locus.ACTION_TASK
Cat: None
Extra: tasks: { track_record
: { action: "add_wpt", auto_save: "false", action_after:"audio"} }
Target: Broadcast Receiver ]

Replies (1)

photo
1

Hello,

it was not clear in the documentation. In the case, that 'auto-save' is set to 'true', the 'action_after' parameter is ignored.

The idea here is then quite simple: support for automatic saving of audio recording after a certain time. App anyway most probably have problems with audio-recording when the screen is not enabled (I'm worried, this won't be easily doable), etc. So a more complex task than it looks ...

photo
1

With the help of tasker, I have already come up with a crutch.

If necessary, I turn on the screen and run the task "_POI Add By Voice", then turn off the screen.

Although pressing the "Stop" and "Save" buttons by coordinates is a bad decision.But it works.

It would be much better if the Locus itself completes the recording of the point after the specified time has elapsed.

Task: _POI Add By Voice

A1: Send Intent [
Action: com.asamm.locus.ACTION_TASK
Cat: None
Extra: tasks: { track_record
: { action: "add_wpt", auto_save: "false", action_after:"audio"} }
Target: Broadcast Receiver ]

A2: Pronounce [
Text: Speak...
Synthesizer: Voice: default:default
Stream: 3
Key: 5
Speed: 5
Respect Audio Focus: Enable ]

A3: Wait [
Msec.: 0
Seconds: 9
Minutes: 0
Hours: 0
Days: 0 ]

A4: Run Shell [
Command: input tap 710 1220
Delay (sec.): 0
Use Root: Enable
Use Global Namespace: Enable
Continue Task After Error:Enable ]

A5: Run Shell [
Command: input tap 850 1840
Delay (sec.): 0
Use Root: Enable
Use Global Namespace: Enable
Continue Task After Error:Enable ]

A6: Pronounce [
Text: ku
Synthesizer: Voice: default:default
Flow: 3
Key: 5
Speed: 5
Respect Audio Focus: Enable ]

photo
1

Excellent, you ought to post this to the Tasker section of the main locus forum...

Ill think ill copy this idea, thanks

photo
1

I found out that when the screen is turned off, the intent launches the voice recording tool and everything is recorded. The screen has to be turned on just to press the two buttons to end recording and save a new point.

photo
1

Neoaliphant I did it. :-)

photo
Leave a Comment
 
Attach a file