AutoVoice Testing spotify automation

Discussion in 'AutoApps' started by Bchocotoff, Sep 21, 2015.

  1. Bchocotoff

    Bchocotoff New Member

    Joined:
    Sep 21, 2015
    Messages:
    3
    Likes Received:
    0
    Hi all,

    I hope you guys can help me. Im new with this and im getting the hang on all of this programming thing.

    So what im trying to do here is automate spotify. As an example.. ok google now, Play Music.. "Ok Bryce, tell me what you like to hear". Then i can respond and autovoice is only supposed to trigger on keywords. So if i say, play some reggae music the keyword here should be reggae and it should run that task. In this task there should be alot of ifs and matches with a lot of my playlists.

    So what ive managed to do already is starting the chosen spotify playlist and press ahuffle so its starts to play. I also was able to do this with like 5 profiles and 10 tasks but it could be alot cleaner with all different playlists in one task!

    So in my profile called "multiple option test"
    Command: play.+(reggae|hiphop|dance)
    This is set up with regex

    And my task i have
    1. If - %avcommnofilter ~ reggae
    2. Say - Allright you want to listen reggae, sit back and relax
    3. Browse URL - (here comes my spotify playlist url)
    4. Autoinput action - (my setup so it presses shuffle automatically)
    5. Else if %avcommnofilter ~ hiphop
    6. Say hiphop coming up
    Well the same thing happens again as task 3 and 4

    I dont seem to get this working can somebody please guide me through this?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, I couldn't understand what part exactly isn't working. Can you clarify please? Thanks
     
  3. Bchocotoff

    Bchocotoff New Member

    Joined:
    Sep 21, 2015
    Messages:
    3
    Likes Received:
    0
    When entering ok google now it doesn't respond at all. It does not recognize my profile. So I'm doubting that my profile is incorrect.

    Is the listen.+(reggae|hiphop) correct?
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Ok, try to use this as your command filter regex:

    play.+(?<genre>reggae|hiphop|dance)
    Then in the task use %genre instead of %avcommnofilter :) That should work
    More info here

    Also, I recommend using a flash action as the first action in the task with the text "listening to %genre" just to see if your task is running at all.
    Hope this helps!
     
  5. Bchocotoff

    Bchocotoff New Member

    Joined:
    Sep 21, 2015
    Messages:
    3
    Likes Received:
    0
    Great thanks for the info, i will try this soon as i get home from work. I will let you know
     

Share This Page