Input Speech

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Input Speech

Post by Rafi4 » 25 Jun 2018 07:21

Hi
How can I use input Speech (experimental) action.
Give me any examples.
Thanks in advance.
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Input Speech

Post by Desmanto » 25 Jun 2018 17:39

Just add that action. After that the recognized text will be in {value}, use this in your other flow, example just speech output, using this {value}.
Usually this will require Google app to be installed and updated at your phone. Google Play services probably need to be updated too.

As a good practice, you can put an expression after the input speech

Code: Select all

operation == "ok"
True, continue to your main flow. False, loop back to the input speech. It will loop back to the input speech if it fails to recognize the speech. You can also put another condition after it : execution count, 5 times. So if it fails 5 times, the loop is stopped.

Another thing to remember is sometimes the recognized speech can be in capital. So most of the time, you have to convert it to lower case first to make sure the comparison is correct (if you compare the value)

Code: Select all

value = toLowerCase(value);
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.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Input Speech

Post by Rafi4 » 26 Jun 2018 01:08

Hi Desmanto
Thanks for your help.
I have created this flow. This is working.But I want to use multiple words. How can I?
Attachments
flow_Voice_input.xml
(1.96 KiB) Downloaded 700 times
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Input Speech

Post by digitalstone » 26 Jun 2018 04:16

You mean if you want to let it to evaluate a sentence?
Just try adding words between the quotes to evaluate.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Input Speech

Post by Rafi4 » 26 Jun 2018 04:22

Hi DIGITALSTONE

Thanks
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply