Wondering if there's a way to make the input speech prompt timeout (or a way to stop it after x seconds).
I have a task where I currently have it speak "to continue say 'yes' otherwise say 'cancel'" and then it uses input speech to await a voice reply... but I'd like it to time out/continue if nothing is spoken. The way it currently behaves is that the google voice recognition times out, but it doesn't return to automagic, it replaces the popup with one that you must physically tap to try voice recognition again.
The flow is meant to be hands free so if it doesn't hear "yes" I want it to just timeout after 5 seconds and return execution to the automagic flow.
A workaround for another much less capable macro utility suggests creating a parallel task in a profile that generates a pop up after x seconds - apparently that gets rid of the voice input popup. But adding a sleep+message dialog in parallel to the input speech in a test flow didn't work.
Voice recognition/input timeout
Moderator: Martin
Re: Voice recognition/input timeout
You need to use no user interface. The only clue you have when the speech recognition is running is the beep, so you might want to increase the media volume first. Usually it will timeout around 5 seconds. Put expression to check the loop and let say loop for 5 times before the flow continue to certain branch.
There is no way to control the timeout yet, should be requested as additional feature. (a checkbox to define the timeout).
BTW, how many language do you have in the Language field of the Input Speech? After change my phone to Oreo 8.1, I have only 5 language choices, de-DE, en-UK, en-US, fr-FR and it-IT. All other languages are not there, but still can be accessed by putting a proper language code.
There is no way to control the timeout yet, should be requested as additional feature. (a checkbox to define the timeout).
BTW, how many language do you have in the Language field of the Input Speech? After change my phone to Oreo 8.1, I have only 5 language choices, de-DE, en-UK, en-US, fr-FR and it-IT. All other languages are not there, but still can be accessed by putting a proper language code.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Voice recognition/input timeout
Perfect advice (as always) Desmanto! That works like a charm, thank you.
| how many language do you have?
On two different devices (running Lineage w Android 7.1.2 and CM w Android 4.4.4) there are several screens of languages to choose from... though I wonder the utility in that - I have 'prefer offline' selected and the only language available in offline mode (that I've installed) is US-ENGLISH.
| how many language do you have?
On two different devices (running Lineage w Android 7.1.2 and CM w Android 4.4.4) there are several screens of languages to choose from... though I wonder the utility in that - I have 'prefer offline' selected and the only language available in offline mode (that I've installed) is US-ENGLISH.