[Android Apps and Games] faku1810:
I think it's probably intended, turning off utter means it is not working in the background, so it can't be activated to issue commands. I would imagine the read-out of notifications is a different matter independent of utter being in the background, and that's why it's not turned off by the intents. Secure settings should work though, I've used it for several different things and it's been okay.

I'll warn you, this is useful only to search the artist, as for some reason I can't make it play the music automatically unless i use some workarounds that need root, i'll mention the needed steps apart from the main search command.

First get utter! Receiver Project V1.zip from this post: http://xdaforums.com/showpost.php?p=34339449&postcount=2155

That post explains how it works if you want to use it for other stuff as well, but for this case just follow these steps.

1) After downloading the zip, extract it and import it on tasker (long press on Profile, then Import, and search for the file), I don't remember if you have to repeat the steps for Tasks as well.

2) Then you have to create the command, you'll see there are commands 1, 2, and 3 already, you may edit one of those or create a Command 4. Since Utter already recognizes "Search" as a command for different purposes, you can either

a) Create a "search artist" command anyways, that you'll have to use in a way that it's sent to Tasker because it's not recognized by Utter, for example : I want you to search artist Bon Jovi and play its music. This will be sent to the Receiver and after a few seconds it will determine you want to run the task associated to "search artist".

b) Create a different command that won't be taken into account by utter, for example "Give me some Bon Jovi".

3) Now we can proceed to the creation of the Task that will launch music for us. If you're rooted already, you may as well download the Task I'll attach in the post and use it. After modifying the X Y coordinates i mention below, I assure you it will work as long as you pronunciate the artists' names in a clear way. But if you don't have root and aren't interested in rooting your device for this, follow these steps to ONLY SEARCH for the artist, you'll have to manually play the music after that.

a) Create a new task, named CommandAction4, or edit the ones already exist so they will have the following set up:

A1) Variable - Search and Replace (%par2, artist, Replace: Yes, | ) --- I use the word artist, but it depends on your command, it's the last word before the artist's name.

A2) Split Variable (%par2, | )

A3) Stop (IF: %par22 is not set)

A4) Send Intent:

Action: android.intent.action.SEARCH,

Category: Default,

Extra: query:%par22,

Package: com.google.android.music,

Class: com,google.android.music.ui.SearchActivity

Target: Activity

That's it. So far it will take the artist's name and search for it in google play music. If you're rooted, you may add the following to make it play all that artist's music randomly. NOTE: This may not be the best way to do this, and I actually hope there's a way to do it with intents, as that would let non-rooted users do it as well, but i do not know how to do so, so i came up with this answer instead.

A5) Input - Pad/Trackball (Down, 2)

A6) Input - Pad/Trackball (Press, 1)

A7) Wait for 500 ms

A8) Shell (input tap X Y, Root: Yes) -- X Y will vary from device to device and according to screen orientation. You'll have to find out this by trial and error or enabling Show Cursor in Developer's Settings if your phone has it - For my Galaxy S3 I used the values X: 685 and Y: 585

A9) Wait for 500 ms

A10) Shell (input tap X Y, Root: Yes) -- This one is a bit higher than the previous one so only the Y value will vary. I used 400.

A11) Input - Pad/Trackball (Down, 1)

A12) Input - Pad/Trackball (Press, 1)

A13) Input - Button (Back)

A14) Input - Button (Back)

A15) Input - Button (Back)

That's all, I've tested a few times, and it worked as long as i made myself clear, sadly i'm not an english speaker, nor I do have many artists in english to test this appropriately, but at least there's no risk or harm you may face by using this. The last 3 actions are to enable you to use this command again to search for a different artist, otherwise, you'd stay in the artist's playlist (same if you use Home Button), and I can't kill the app because this whole task would be useless then, so bear with it.

Finally, you must remember to set Utter to send non-recognized orders to Tasker, this is done in Utter's settings, Advanced, Try Again : Send to tasker.

Edit: I forgot that this would require to have the screen on. I've tried using an Action right before sending the intent, with the plugin Secure Settings to Wake Device (Screen Dim, 5 seconds). It dld work alright in my tests, but tell me if you experience anything unexpected.

As I stated, it requires root to "play" the music, otherwise it's just a voice search for google play music. Also, even if you have root, the procedure for playback of only one song is slightly different, as it would stop after Action 6 (That Press would already play the song). And if an artist you search for has only one song it will require different X Y coordinates.

Overall, it's not a definite answer, but it might come in handy for a few people. If you want to use it to play only a song without saying the artist, follow the same procedure i described, add a Command5 to the CommandList, and create a CommandAction 5 Task, that would be like this one, but skip Actions 7 to 12.

EDIT: For playlists, the intent is the following

Action: android.intent.action.VIEW

Extra: key: playlist <- delete the space

Extra: value:X <--- being X a number, It seems the first playlist is 2, and goes one up for each new playlist.

Package: com.google.android.music

Class: com.google.android.music.ui.TrackContainerActivity

So you'd have to use something like "Playlist number three" as a command, and split it with number, and somehow use the last number as an integer to replace the X. I'll test if I can somehow use this to play individual tracks as well, maybe the key is the "key" in the extras..