Android autovoice

The purpose of this article is to guide you in using Android to speak to Jeedom. We will use the Jeedom interactions engine which makes it possible to formulate requests and that Jeedom responds to them (and also, if desired, activates different scenarios or elements).

Installation

Prerequisites

Naturally, you need an Android device (tablet, phone, PC with microphone and speakers) and install it Tasker and AutoVoice. The latter allows you to create your own voice commands for Google Now to automate your tasks using voice.

To note : AutoVoice is only the component for talking to Jeedom but does not allow Jeedom to respond. To do it, you don’t need the Tasker plugin. We can also use this example by replacing AutoVoice’s voice recognition with an NFC tag, geolocation, received SMS…

The principle

We will use a Tasker profile on state. This will be a voice recognition from AutoVoice. Then in task, we will ask Tasker to execute 2 actions. The first will be to call Jeedom and transmit the text result of the voice recognition. The second will be to announce the return of Jeedom.

Profile creation

We add a new profile with a State as a trigger.

android.autovoice1

We select Plugin on the first screen.

android.autovoice2

In plugin type, we select AutoVoice.

android.autovoice3

In the submenu AutoVoice, We select Recognized.

android.autovoice4

You can save the default configuration, unless you want to specify keywords or other parameters.

android.autovoice5

We can give the profile a name like “Jeedom Interactions” and the backup will be made after the link with a task.

Task

We add a new task to the newly created profile. For example, it could be called “Jeedom API”.

android.autovoice6

The task will finally group 2 actions : API call and say back.

android.autovoice7

First we will add a type action Network.

android.autovoice8

Then we select Get HTTP.

android.autovoice9

Here we will fill in with Jeedom information. Here is the information to enter :

Do not forget to put your API key instead of the chain “your key” . We must leave %avcommonfilter at the end, it will be replaced by the return of Autovoice.

android.autovoice10

Add a type action Say. To do this, filter the actions by putting “say” at the magnifying glass.

android.autovoice11

And we go back %HTTPD in the text field.

android.autovoice12

It’s finish. On text recognition by AutoVoice, Jeedom will be called and you will have the response configured in the interactions which will be spoken by your phone. Don’t forget to configure Jeedom interactions and you can ask it whatever you want. From “what is the temperature in the living room” to “turn on the living room light”.

Tip

If it doesn’t work from the start, it’s often because AutoVoice is not active. To do this, launch it, click on Google Now Integration and on the first choice at the top and authorize AutoVoice.

Tip

By default, AutoVoice disables Google Now search, it is possible to cancel this behavior, for that in Tasker click on your profile then “edition” (small pencil), then “advanced” (at the bottom), and uncheck “Do Google Now Search “(at the very bottom).

Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.