nixos-configs/devices/homie/modules/home-assistant/spotify-sentences.nix

109 lines
2.1 KiB
Nix
Raw Normal View History

{
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 = "";
}
];
2024-12-02 11:03:43 -05:00
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.
'';
2024-12-02 11:03:43 -05:00
Pause.default = ''
Pausing the music.
'';
Unpause.default = ''
Resuming the music.
'';
};
}