Dnd mode when playing a song? - Tasker Tips & Tricks

Hi, its possible detect when a specific player ex. Deezer is playing a song to set do not disturb mode on?
Thanks,
TarcĂ­sio

Tasker can monitor when an app opens, but not when a specific song is playing within that app. Unless the app provides an API to communicate what it's playing.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

I think could app take information, if is playing or not a song only, not a specific music....
Or think, if i know, is system is playing a song.
May be possible?
Tanks,

As I said, communicating with an app had to be programmed into the app you want to communicate with.
Maybe the Intent Radio app will give you what you want.
There is more information at Stephen Blott's blog.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Related

[Q] Google Now/Touchless Control and Google Play Music

Can anyone get the "Play me some songs from [band name]/[album title]" to successfully start playing music through the Play Music app using Google Now/Touchless Control?
The best I can do is get it to return a search for the band/album in Play Music, despite that face that Google Now responds with "Playing Request", and acknowledges the correct band/album name I've said...
aside from this, if I tell Google Now to play, for example, "Teenagers" by My Chemical Romance, it will acknowledge that I've said that specific song, but it will search Play Music for "Teenagers" and play the first hit, which is a song called "Teenagers" by Department of Eagles.
This is especially infuriating because in the new ads that Motorola just put out, they launch Play Music using Touchless Control and it works great! (can't post a link here since I'm new, but just youtube "lazy phone - touchless control")
any one else experiencing this issue?
I'm on a Moto X (duh) running the latest version of the Google Search app (2.7.9.789824) and Play Music (5.2.1204L.814012) .. I have "Play Music" checked in the Phone Search settings, but having it unchecked seems to return the same result.
thanks in advance for the help!
Same problem
Sent from my Moto X
nonotechnology said:
Can anyone get the "Play me some songs from [band name]/[album title]" to successfully start playing music through the Play Music app using Google Now/Touchless Control?
The best I can do is get it to return a search for the band/album in Play Music, despite that face that Google Now responds with "Playing Request", and acknowledges the correct band/album name I've said...
aside from this, if I tell Google Now to play, for example, "Teenagers" by My Chemical Romance, it will acknowledge that I've said that specific song, but it will search Play Music for "Teenagers" and play the first hit, which is a song called "Teenagers" by Department of Eagles.
This is especially infuriating because in the new ads that Motorola just put out, they launch Play Music using Touchless Control and it works great! (can't post a link here since I'm new, but just youtube "lazy phone - touchless control")
any one else experiencing this issue?
I'm on a Moto X (duh) running the latest version of the Google Search app (2.7.9.789824) and Play Music (5.2.1204L.814012) .. I have "Play Music" checked in the Phone Search settings, but having it unchecked seems to return the same result.
thanks in advance for the help!
Click to expand...
Click to collapse
I was able to get it to work after clicking the drop down menu next to the card to use play music. It did take me a few tries to complete.
bgeorger said:
I was able to get it to work after clicking the drop down menu next to the card to use play music. It did take me a few tries to complete.
Click to expand...
Click to collapse
bgeorger, I've gotten this far as well, but are you saying that after that screen it sucessfully launches Play Music and begins playing "No Church In The Wild" (the first track from Watch The Throne)?
Superpopsss, glad I'm not alone in this. now we've just gotta find a fix!
I've been talking to someone on G+ who is running 4.3 on his Nexus 7 and this functionality works fine. (he's also on All Access, but I don't think that should affect this behavior)
maybe it's a bug in 4.2.2?
Same here, works fine on my '13 N7, N4, and GNex all on 4.3
Sent from my Motorola Ghost
so can anyone running 4.2.2 get this to work?
Worked fine on my htc one on 4.2. It's an acknowledged bug as far as I know
nonotechnology said:
bgeorger, I've gotten this far as well, but are you saying that after that screen it sucessfully launches Play Music and begins playing "No Church In The Wild" (the first track from Watch The Throne)?
Superpopsss, glad I'm not alone in this. now we've just gotta find a fix!
I've been talking to someone on G+ who is running 4.3 on his Nexus 7 and this functionality works fine. (he's also on All Access, but I don't think that should affect this behavior)
maybe it's a bug in 4.2.2?
Click to expand...
Click to collapse
It does auto play, however, it isn't a track off the actual album. It does seem to work just fine when you only specify a band.
bgeorger said:
It does auto play, however, it isn't a track off the actual album. It does seem to work just fine when you only specify a band.
Click to expand...
Click to collapse
Only specifying the band works for me up to the point where I still have to press the "play" button on Play Music. I mean, thanks Google Now, you opened the thing for me, and have it ready to run. But didn't I already ask to play it? I mean... that's what I thought when I said "play some Aerosmith" (btw, Gnow does have a hard time understanding "Aerosmith" )
Also not working for me
Using the Moto X on Rogers, and I'm having the same problem, but I'm one step further back.
The voice commands/google now won't bring up a "play music" card at all. I've tried "play ___", "listen to ____", etc. and all I get is a google search result with youtube links or music play store links to buy the music. It recognizes what I'm saying but there doesn't seem to be the functionality to play the music using voice commands as advertised. I've tried putting hard copies of the music in the "music" folder and that doesn't change anything. I've been through google now settings and moto voice commands settings but can't find anything to help.
Any suggestions? Otherwise everything works perfectly.
I have a big problem using this music playing functionality...
But.. My main problems are actually my own and not how the phone performs.
First of all, I can never think of an actual name of any song or sometimes even artist that I want to listen to. My brain just does not translate desires into words very well, but works fine when scanning through a list of names. But I think I can get over this and have it be of slightly more use.
What really limits my use of this function is the actual music I listen to.
I listen to a lot of power metal, punk rock, and other more obscure music.
I have been completely unable to get Google Now to recognize band names such as:
-Ayreon
-Kamelot
-Turisas
-Benuts
-Blackguard
-The Blaggards
-Cruachan
-Deathmole
-Dethklok
-Doomsword
-Eluveitie
-Falkenbach
-Forefather (GN always hears this as "for father")
-Heavatar
-Naio Ssaion
-Powerglove
-Power World
-Sirenia
-Skatalites
-Tyr
Surprisingly it recognized the bands Korpiklaani and Gojira.
That said, this is only a small segment of the music I have on my phone but it includes some that I listen to very often, and many of these artists are more readily in my mind.
I think it's extremely odd that I'll ask Google Now "What is Ghost Opera" and it'll come out and tell me that it is an album by Kamelot.
But, if I ask it to "Play Ghost Opera" it chooses to play a song with that title by Technomind, and I can't ask it to play the album or the song by Kamelot because Google Now always thinks I'm saying Camelot.
But, I do have a question for people that have gotten this to work... Does it ever actually queue up more than one song?
For instance I'll ask for it to "Play some songs from Voltaire", and it'll only queue up "When You're Evil" every time. It won't ever play another one of his songs even though this specific song is nowhere near the first one in any of his albums or playlist.
Can it play playlists if I create them or any of my defined "radio stations"?
I've had better luck saying "Stream (artist)" or "Stream (song) by (artist)"
No luck on queuing up more than one song, though. Saying "Stream (album) by (artist)" still just plays one track.
edit: saying "Stream (album) by (artist)" actually just takes me to the artist page, without playing the album. A shortcut, but not ideal. This is assuming that the title of the album is NOT also a title of a song. If that's the case, it just plays the song. Saying "Stream the album (album)" or "Stream the album (album) by (artist)" results in a google search.
It's hit and miss with me. Unfortunately it's a problem with Google Now. Google will need to fix it.
Khourya said:
Using the Moto X on Rogers, and I'm having the same problem, but I'm one step further back.
The voice commands/google now won't bring up a "play music" card at all. I've tried "play ___", "listen to ____", etc. and all I get is a google search result with youtube links or music play store links to buy the music. It recognizes what I'm saying but there doesn't seem to be the functionality to play the music using voice commands as advertised. I've tried putting hard copies of the music in the "music" folder and that doesn't change anything. I've been through google now settings and moto voice commands settings but can't find anything to help.
Any suggestions? Otherwise everything works perfectly.
Click to expand...
Click to collapse
Khourya make sure in your "settings" for Google Now in "Phone Search" you have Google Music checked. Though it seems to have no affect for me, it may for you.
also try "play me some" or "stream" like some others in the thread were suggesting.
Dark, it's interesting you say it's an issue with Google Now. I think it's more an issue with Play Music. I've seen a lot of videos use Now to launch a random track when searching for an Artist, or play an Album, but it was all with the old (pre-white UI) Music app...
I find it hard to believe they know it's a bug when they're quite literally advertising the functionality we're all having trouble with in those new "Lazy Phone" ads...
In general I can get it to play music but it only actually started playing after I selected a few times that I actually want it to play music using Play Music instead of just searching for music to buy.
My bigger issue is actually getting Google Now to recognize me when I say band names that I know it can recognize.
nonotechnology said:
Khourya make sure in your "settings" for Google Now in "Phone Search" you have Google Music checked. Though it seems to have no affect for me, it may for you.
also try "play me some" or "stream" like some others in the thread were suggesting.
Dark, it's interesting you say it's an issue with Google Now. I think it's more an issue with Play Music. I've seen a lot of videos use Now to launch a random track when searching for an Artist, or play an Album, but it was all with the old (pre-white UI) Music app...
I find it hard to believe they know it's a bug when they're quite literally advertising the functionality we're all having trouble with in those new "Lazy Phone" ads...
Click to expand...
Click to collapse
Google music is checked in settings and I've tried all permutations of the phrase, but I still can't even get the card to show up...
Very frustrating.. Guess I'll just have to keep on scratching my phone's hairy belly! (that was a lazy phone commercial joke just in case)
I'm on the verge of calling rogers/Google/Motorola..
Sent from my XT1058 using XDA Premium 4 mobile app
Mine works for specific songs perfect, but if I say to play songs plurally it limits it to one
Sent from my XT1056 using xda app-developers app
Khourya said:
Google music is checked in settings and I've tried all permutations of the phrase, but I still can't even get the card to show up...
Very frustrating.. Guess I'll just have to keep on scratching my phone's hairy belly! (that was a lazy phone commercial joke just in case)
I'm on the verge of calling rogers/Google/Motorola..
Sent from my XT1058 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I'm on rogers moto x as well. Same issues you are having. I even tried typing in "stream" or "play music" in Google now and the selected "phone" section and it couldn't find any results in my phone. Ridiculous.
Maybe because Google music isn't in Canada rogers?
Sent from my XT1058 using XDA Premium 4 mobile app
I'm on a different device but same problem. It doesn't seem to work at all for me. I have phone search set to search my music player but google now will always perform a web search. If I scroll all the way to the bottom and select 'phone' as what to search under after I searched I see my song there, but the automation part seems to be broke.
vpxf said:
I'm on a different device but same problem. It doesn't seem to work at all for me. I have phone search set to search my music player but google now will always perform a web search. If I scroll all the way to the bottom and select 'phone' as what to search under after I searched I see my song there, but the automation part seems to be broke.
Click to expand...
Click to collapse
Nine out of ten times this is what it does to me too. Very upsetting day one with phone. I think this is the only thing that I haven't been able to make work. grrr

Touchless Controls Workarounds?

So I was a bit frustrated that the Canadian Rogers Moto X did not come with the standard Google Now voice instructions like the American version.
I can't say "Play Songs By Deftones" or any of the ways described in the Google Now examples to get music working. Which kinda made me feel cheated the product sold to me does not work as advertised.
But I did realize I can say "open audible app" or "open songza app" so it can open app names.
So I used Tasker and Tasker's autoshortcut plugin so it can access my playlists and then I used Taskers export task as app plugin to make the play playlist task as an app.
So now when I say "open Playlist app" it plays the playlist I want.
Anyone else have any tiny tricks or discovered Google now voice commands that will work well with Rogers Moto X?
Sent from my XT1058 using XDA Premium 4 mobile app
liutszho said:
So I was a bit frustrated that the Canadian Rogers Moto X did not come with the standard Google Now voice instructions like the American version.
I can't say "Play Songs By Deftones" or any of the ways described in the Google Now examples to get music working. Which kinda made me feel cheated the product sold to me does not work as advertised.
But I did realize I can say "open audible app" or "open songza app" so it can open app names.
So I used Tasker and Tasker's autoshortcut plugin so it can access my playlists and then I used Taskers export task as app plugin to make the play playlist task as an app.
So now when I say "open Playlist app" it plays the playlist I want.
Anyone else have any tiny tricks or discovered Google now voice commands that will work well with Rogers Moto X?
Sent from my XT1058 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hmm thats really interesting. I was just looking for a way to leverage touchless controls with tasker/autovoice when I came across this post. I have a bunch of autovoice tasks that I used to use on my S4 for home automation. I'm thinking that if I can't just launch the autovoice recognize function through touchless controls, then I could export the autovoice recognize task as an app, like you said, and then launch tasks from that. All without touching the phone.

Music Controls

Has anyone found a better app for remote controlling your music.
the stock one is ok, but it would be nice to see the track listing.
Null
And maybe any good music programs to use with null rom, and non samsung phone?
akira8473 said:
Has anyone found a better app for remote controlling your music.
the stock one is ok, but it would be nice to see the track listing.
Click to expand...
Click to collapse
I personally used M2D's manager app to send tasker intents from my watch to my phone and on the phone I have tasks for each control and use "Media Utilities" in the Play store to actually perform the actions as it has a tasker plugin. I also use it to send the currently playing song to my watch and display it with the Zooper widget. It's tricky and time consuming but there is a tutorial in the M2D thread in these forums.

Send Commands to Android Auto from Phone

Does anyone know if it is possible to send a command to the Android Auto inteface?
For instance. "Play"
Right now if you play music on the phone after connecting to android auto for instance using Tasker, the music will play but the Android Auto interface doesn't pick up that music has started playing. It will notice if you manually click on the Music button at the bottom but until then it has no idea that music started playing.
So. No song info on the main screen. All headunit control buttons don't work.
The Android Auto protocol allows a Headunit to send a Play command and that tends to be triggered by a physical Play button on the HU.
But you still need an Android Auto compatible audio app to actually DO something with a received Play command.
Google COULD choose to allow any normal audio app to work under Android Auto, but they choose not to, IMO because it increases competition for Google's Play Music app.
I think that a third party Android Auto compatible app could act as a "middle-man" between a non AA app and AA. But I'm sure such an app would never be allowed on Play, so there's not much incentive for professional devs to build one. I've considered it, but I'm busy enough.

Switch Radio Stations while cycling and listening to music

Hi there,
As the title says I want to make a tasker profile such that I can switch the radio stations on the fly(while I'm cycling) even though I'm listening to another TuneIn station at that moment. The issue is: "I'm listening to some local romanian station, ex: Pro FM then I don't like that song and I want to change it to another station which is already on my profile as favourite...then again if I don't like that song either I want to switch again...I think you got my point. Right now I have 8 radio stations on my favourite list. I can put them all into an array and random them.".
Well, I installed autoapps and bought AutoVoice. I also set AutoVoice to intercept my vocal commands in prejudice of native Google Now but I am not able to make android listen to my voice while the screen is off and especially while I already have my headphones in my ears.
It's obvious that my screen will be off and with swipe lock pattern(I can set it to none for convenience) and I will also listen to another radio station with volume quite loud. Is there any recent way to accomplish this? Thanks in advance. Have a good day!
ps: If TuneInRadio doesn't have any useful intents to switch between radio stations and there is already another radio player better than TuneIn I will be glad to try that also ...I'm not sticked to TuneIn Radio although I saw an interesting intent through intent list:
<intent-filter>
<action android:name="tunein.googlenow.actions.PLAY_RELATED_STATION"/>
......
</intent-filter>
Can we use this to our advantage?

Categories

Resources