nixos-configs/configurations/homie/modules/home-assistant/spotify/sentences.nix
matt1432 8f82b1885a
All checks were successful
Discord / discord commits (push) Has been skipped
fix(hass): improve spotify sentences
2024-12-18 20:57:21 -05:00

123 lines
2.7 KiB
Nix

{
language = "en";
lists = {
album.wildcard = true;
artist.wildcard = true;
playlist.wildcard = true;
song.wildcard = true;
};
# ---------------------------------------
# PlayAlbum
# ---------------------------------------
intents.PlayAlbum.data = [
{
sentences = [
"play[ing] [the] album {album} (from|by) [the] [artist] {artist}"
];
}
{
sentences = [
"play[ing] [the] album {album}"
];
slots.artist = "";
}
];
responses.intents.PlayAlbum.default = ''
Searching for the album {{ slots.album }}
{% if slots.artist != "" %}
by {{ slots.artist }}
{% endif %}
on Spotify and playing it.
'';
# ---------------------------------------
# PlayArtist
# ---------------------------------------
intents.PlayArtist.data = [
{
sentences = [
"play[ing] [some] music (from|by) [the] [artist] {artist}"
"play[ing] [the] artist {artist}"
];
}
];
responses.intents.PlayArtist.default = ''
Searching for the artist {{ slots.artist }} on Spotify and playing their top songs.
'';
# ---------------------------------------
# PlayPlaylist
# ---------------------------------------
intents.PlayPlaylist.data = [
{
sentences = [
"play[ing] [(the|my)] playlist {playlist}"
];
}
];
responses.intents.PlayPlaylist.default = ''
Searching for {{ slots.playlist }} in your favorites, or elsewhere if not found, and playing it.
'';
# ---------------------------------------
# PlaySong
# ---------------------------------------
intents.PlaySong.data = [
{
sentences = [
"play[ing] [the] (song|track) {song} (from|by) [the] [artist] {artist}"
];
}
{
sentences = [
"play[ing] [the] (song|track) {song}"
];
slots.artist = "";
}
];
responses.intents.PlaySong.default = ''
Searching for the song {{ slots.song }}
{% if slots.artist != "" %}
by {{ slots.artist }}
{% endif %}
on Spotify and playing it.
'';
# ---------------------------------------
# Pause
# ---------------------------------------
intents.Pause.data = [
{
sentences = [
"(pause|stop) [the] [(song|track|music)]"
"(pause|stop) spotify"
];
}
];
responses.intents.Pause.default = ''
Pausing the music.
'';
# ---------------------------------------
# Unpause
# ---------------------------------------
intents.Unpause.data = [
{
sentences = [
"(unpause|resume) [the] [(song|track|music)]"
"(unpause|resume) spotify"
];
}
];
responses.intents.Unpause.default = ''
Resuming the music.
'';
}