When I get into my car, I connect my Nexus 5 (not rooted) on my audio system and play music with Spotify. What I want is to be able to skip, pause, and play songs with voice commands. I tried out with Tasker and AutoVoice. AutoVoice is recognizing the command, but nothing is happening. Is it possible to do that with Tasker and AutoVoice? If yes, then how?
You should try using AutoInput, a plugin for Tasker available in the market, which doesn't require root.
You can then create a profile and set AutoVoice for every command, then set AutoInput (plugin section) with the X and Y coordinates of the button you want to press. Find the coordinates of the button by enabling the feature in Developer Options.
N.B. Make sure you're in the app you want when running the task.
Hope it helped!
- Create an event using "autovoice recognize":
set command filter = next song (or whatever you want to say as a command)
(Everything else is left unchanged)
- Create a new task:
System › Send Intent
Target= Broadcast Receiver
(Should work now)
com.spotify.mobile.android.ui.widget.PLAY works for "play"; never looked up anything else as I didn't need it.
there's a great app in the play store called Commandr. it seems like it would have the functionality you want without any programming.
Commandr extends the capability of Google Now's voice recognition by adding more voice commands that Google Now can recognize. The developer adds new commands regularly and those new commands are chosen via in-app user submission and voting pages.
I developed an app that allows you to use voice commands for Spotify: https://play.google.com/store/apps/details?id=com.tmacstudios.spotifyvoice&hl=en