Skip to content

Commit

Permalink
feat: Add intents for French language
Browse files Browse the repository at this point in the history
  • Loading branch information
lotooo committed Jan 2, 2025
1 parent c4928b9 commit 4e563ac
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
87 changes: 87 additions & 0 deletions custom_sentences/fr/music_assistant_PlayMediaAssist.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
language: "fr"
intents:
MassPlayMediaAssist:
data:

# TARGET AN AREA
- sentences:
- "<play> <artist> {artist} dans [l'|la |le ]<area> [(en mode) {radio_mode}]"
- "<play> <album> {album} [by <artist> {artist}] dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
- "<play> <track> {track} [by <artist> {artist}] dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
- "<play> <playlist> {playlist} dans [l'|le |la ]<area> [(en mode) {radio_mode}]"
- "<play> <radio_station> {radio} dans [l'|le |la ]<area>"
expansion_rules:
play: "((joue)|(mets))"
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
track: "[la ](piste|chanson)"
album: "[l'|la |le ](album|ep|disque|compilation|single)"
playlist: "[la ]playlist"
radio_station: "[la ][station de](radio)"

# TARGET A NAME
- sentences:
- "<play> <artist> {artist} <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <album> {album} [par <artist> {artist}] <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <track> {track} [par <artist> {artist}] <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <playlist> {playlist} <on> [l'|le| la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <radio_station> {radio} <on> [l'|le |la ]{name} [<player_devices>]"
expansion_rules:
play: "((joue)|(mets))"
"on": "(sur|dans)"
player_devices: "((speaker)|([media] player))"
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
track: "[la ](piste|chanson)"
album: "[l'|la |le ](album|ep|disque|compilation|single)"
playlist: "[la ]playlist"
radio_station: "[la ][station de](radio)"
requires_context:
domain: "media_player"

# TARGET AN AREA AND A NAME
- sentences:
- "<play> <artist> {artist} dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <album> {album} [par <artist> {artist}] dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>] [(en mode) {radio_mode}]"
- "<play> <track> {track} [par <artist> {artist}] dans [l'|le |la ]<area> <on> [l'[le |la ]{name} [<player_devices>][(en mode) {radio_mode}]"
- "<play> <playlist> {playlist} dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>][(en mode) {radio_mode}]"
- "<play> <radio_station> {radio} dans [l'|le |la ]<area> <on> [l'|le |la ]{name} [<player_devices>]"
expansion_rules:
play: "((joue)|(mets))"
player_devices: "((speaker)|([media] player))"
"on": "(sur|dans)"
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
track: "[la ](piste|chanson)"
album: "[l'|la|le ](album|ep|disque|compilation|single)"
playlist: "[la ]playlist"
radio_station: "[la ][station de](radio)"

# CONTEXT AWARNESS
- sentences:
- "<play> <artist> {artist} [(en mode) {radio_mode}]"
- "<play> <album> {album} [par <artist> {artist}] [(en mode) {radio_mode}]"
- "<play> <track> {track} [par <artist> {artist}] [(en mode)) {radio_mode}]"
- "<play> <playlist> {playlist} [(en mode) {radio_mode}]"
- "<play> <radio_station> {radio}"
expansion_rules:
play: "((joue)|(mets))"
artist: "[le |l'|la ](artiste|groupe|chanteur|chanteuse)"
track: "[la ](piste|chanson)"
album: "[l'|la|le ](album|ep|disque|compilation|single)"
playlist: "[la ]playlist"
radio_station: "[la ][station de](radio)"
requires_context:
area:
slot: true
lists:
artist:
wildcard: true
album:
wildcard: true
track:
wildcard: true
playlist:
wildcard: true
radio:
wildcard: true
radio_mode:
values:
- "radio"
5 changes: 5 additions & 0 deletions custom_sentences/fr/responses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: "fr"
responses:
intents:
MassPlayMediaAssist:
default: "C'est parti"

0 comments on commit 4e563ac

Please sign in to comment.