Request Approval

Control your Spotify with Almond

Uploaded By: Hemanth Kini, Gabby Wright (cs294s-spr18)

Commands

  • WHEN: when my top tracks changes
  • WHEN: when a song is playing
  • WHEN: when a song with tempo greater than ____ (tempo) is playing
  • WHEN: when a song with tempo less than ____ (tempo) is playing
  • WHEN: when a song with danceability greater than ____ (d) is playing
  • WHEN: when a song with danceability less than ____ (d) is playing
  • WHEN: when a song with liveness greater than ____ (l) is playing
  • WHEN: when a song with liveness less than ____ (l) is playing
  • WHEN: when a song with energy greater than ____ (e) is playing
  • WHEN: when a song with energy less than ____ (e) is playing
  • WHEN: when I have new favorite songs
  • GET: how danceable is the current track
  • GET: how dancey is the song ____ (song)
  • GET: how loud is this song
  • GET: the loudness of ____ (song)
  • GET: is this song live
  • GET: is ____ (song) live
  • GET: is this song acoustic
  • GET: the acousticness of ____ (song)
  • GET: the key of the current song
  • GET: the key of ____ (song)
  • GET: the energy of this song
  • GET: the energy of ____ (song)
  • GET: the speechiness of this song
  • GET: the speechiness of ____ (song)
  • GET: the instrumentalness of this song
  • GET: the instrumentalness of ____ (song)
  • GET: the time signature of the current song
  • GET: the time signature of ____ (song)
  • GET: how upbeat is this song
  • GET: the valence of ____ (song)
  • GET: the tempo of the current song
  • GET: the tempo of ____ (song)
  • GET: what song is currently playing
  • GET: my playlist
  • GET: songs in my playlist
  • GET: songs in my playlist ____ (playlist)
  • GET: my favorite songs
  • GET: the danceability of the current track
  • GET: the danceability of the current song
  • GET: how dancey is this song
  • GET: how danceable is this song
  • GET: is this song dancey
  • GET: the danceability of the song ____ (song)
  • GET: how dancey is ____ (song)
  • GET: the danceability of ____ (song)
  • GET: the loudness of the current song
  • GET: the loudness of the current track
  • GET: how loud is ____ (song)
  • GET: the liveness of this song
  • GET: the liveness of the current song
  • GET: the liveness of the current track
  • GET: the liveness of ____ (song)
  • GET: the liveness of ____ (song)
  • GET: the acousticness of the current track
  • GET: the acousticness of the current song
  • GET: the acousticness of the current song
  • GET: the acousticness of ____ (song)
  • GET: the key of the current track
  • GET: the key of this song
  • GET: the key of song ____ (song)
  • GET: the energy of level the current track
  • GET: the energy of the current song
  • GET: the energy of the current song
  • GET: how energetic is the current song
  • GET: the energy of song ____ (song)
  • GET: how energetic is ____ (song)
  • GET: the speechiness of the current track
  • GET: the speechiness of the current song
  • GET: the speechiness of the current song
  • GET: how speechlike is the current song
  • GET: the speechiness of song ____ (song)
  • GET: how speechlike is ____ (song)
  • GET: the instrumentalness of the current track
  • GET: the instrumentalness of the current song
  • GET: the instrumentalness of the current song
  • GET: is the current song an instrumental
  • GET: the instrumentalness of song ____ (song)
  • GET: is ____ (song) instrumental
  • GET: the time signature of the current track
  • GET: the time signature
  • GET: the time signature of song ____ (song)
  • GET: how positive is this song
  • GET: the valence of this song
  • GET: the upbeatness of this track
  • GET: the positivity of this song
  • GET: the upbeatness
  • GET: the valence of this track
  • GET: how positive is ____ (song)
  • GET: how upbeat is ____ (song)
  • GET: the bpm of the current song
  • GET: the BPM of the current track
  • GET: the tempo
  • GET: the tempo of the current song
  • GET: the bpm of the current track
  • GET: the tempo of song ____ (song)
  • GET: the bpm of ____ (song)
  • GET: the bpm of song ____ (song)
  • GET: what's on right now
  • GET: what song is currently playing
  • GET: the currently playing song
  • GET: my top tracks
  • DO: play ____ (song) on Spotify
  • DO: pause my spotify
  • DO: play my spotify
  • DO: play the next song on spotify
  • DO: go back
  • DO: add ____ (song) to ____ (playlist name)
  • DO: save the current track
  • DO: seek to ____ (time) seconds in
  • DO: turn shuffle ____ (state)
  • DO: shuffle my spotify
  • DO: repeat this song
  • DO: turn off repeat
  • DO: create a new playlist
  • DO: create a new playlist named ____ (name)
  • DO: add ____ (song name) to my playlist ____ (playlist name)
  • DO: add ____ (song name) to my playlist
  • DO: add to playlist ____ (playlist name)
  • DO: add a song to my playlist
  • DO: play the playlist ____ (playlist)
  • DO: play a playlist
  • DO: play the artist ____ (artist)
  • DO: play an artist
  • DO: play the album ____ (album)
  • DO: play an album
  • DO: play a song
  • DO: add this to my playlist ____ (playlist name)
  • DO: add this to my playlist
  • DO: add an album to my playlist
  • DO: add the album ____ (album name) to my playlist
  • DO: add the album ____ (album name) to my playlist ____ (playlist name)
  • DO: play my playlist ____ (playlist name)
  • DO: play my playlist
  • DO: play the song ____ (song) on Spotify
  • DO: play the songs ____ (song) on Spotify
  • DO: on spotify play ____ (song)
  • DO: play ____ (song)
  • DO: play the song ____ (song)
  • DO: resume my spotify
  • DO: play the next song
  • DO: skip this song
  • DO: skip this song on spotify
  • DO: play the previous song
  • DO: play the last song on spotify
  • DO: go back to the last song
  • DO: add song ____ (song) to ____ (playlist name)
  • DO: add song ____ (song) to my playlist ____ (playlist name)
  • DO: add ____ (song) to ____ (playlist name) on Spotify
  • DO: save whatever's playing to my library
  • DO: save this song
  • DO: skip to ____ (time) seconds
  • DO: go to ____ (time) seconds
  • DO: turn ____ (state) shuffle
  • DO: turn on repeat
  • DO: make a new playlist
  • DO: new playlist
  • DO: add a new playlist
  • DO: create a playlist
  • DO: make a playlist
  • DO: create a new playlist titled ____ (name)
  • DO: add a song to my playlist ____ (playlist name)
  • DO: play ____ (artist)
  • DO: add this song to playlist ____ (playlist name)
  • DO: add the currently playing song to my playlist ____ (playlist name)
  • DO: add this song to my playlist
  • DO: add whatever's playing to my playlist
  • DO: add the album to my playlist ____ (album name)

Queries

  • get_currently_playing(out song :String)retrieve the currently playing track name
  • get_tempo(in opt song :String,
    out tempo :Number)
    retrieve the tempo
  • get_danceability(in opt song :String,
    out danceability :Number)
    get danceability of this track
  • get_acousticness(in opt song :String,
    out acousticness :Number)
    acousticness of this track
  • get_energy(in opt song :String,
    out energy :Number)
    energy of this track
  • get_speechiness(in opt song :String,
    out speechness :Number)
    get speechiness of this track
  • get_valence(in opt song :String,
    out valence :Number)
    valence (positivity) of this track
  • get_liveness(in opt song :String,
    out liveness :Number)
    liveness of this track
  • get_instrumentalness(in opt song :String,
    out instrumentalness :Number)
    instrumentalness of this track
  • get_loudness(in opt song :String,
    out loudness :Number)
    loudness of this track
  • get_key(in opt song :String,
    out key :String,
    out modality :String)
    key of this track
  • get_time_signature(in opt song :String,
    out beats :Number)
    time signature of this track
  • get_user_playlist(out playlist :String)retrieve your Spotify playlist
  • get_user_playlist_track(in req playlist :String,
    out song :String)
    list songs in your Spotify playlist
  • get_user_top_tracks(out song :String)get user's top tracks in the last 4 weeks

Actions

  • player_pause()pause playback
  • player_play()resume playback
  • player_next()go to the next song
  • player_previous()go to the previous song
  • player_shuffle(in req shuffle :Enum(on,off))set the shuffle state
  • player_repeat(in req repeat :Enum(track,context,off))set the repeat state
  • play_album(in req toPlay :String)play an album
  • play_artist(in req toPlay :String)play an artist
  • play_playlist(in req toPlay :String)play the playlist
  • play_my_playlist(in req toPlay :String)play your playlist
  • play_seek_seconds(in req seconds :Measure(ms))seek in seconds
  • save_current_track()save the currently playing track
  • create_new_playlist(in req title :String,
    in opt description :String,
    in opt isPublic :Boolean)
    create a new playlist
  • add_album_to_playlist(in req toAdd :String,
    in req playlist :String)
    add an album to a playlist
  • add_this_song_to_playlist(in req playlist :String)add this song to a playlist
  • play_songs(in req toPlay :String)play song(s)
  • add_songs_to_playlist(in req toAdd :String,
    in req playlist :String)
    add songs to a playlist