nixos-configs/devices/homie/modules/home-assistant/spotify-sentences.nix
matt1432 ce4f9c23ec
All checks were successful
Discord / discord commits (push) Has been skipped
feat(netd): add pause/unpause script
2024-12-02 11:03:43 -05:00

108 lines
2.1 KiB
Nix

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