Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SL] Added MediaPrevious #2298

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions responses/sl/HassMediaPrevious.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: sl
responses:
intents:
HassMediaPrevious:
default: "Predvajam prejšnjo"
2 changes: 1 addition & 1 deletion sentences/sl/media_player_HassMediaNext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intents:
HassMediaNext:
data:
- sentences:
- "[predvajajo] naslednj(o|i|e) [pesem|skladno|oddajo|element|posnetek|epizodo|komad] [na] <name>"
- "[predvajaj] naslednj(o|i|e) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad] [na] <name>"
- "(preskoči [na naslednj(i|o|a|o)] [pesem|skladbo|komad|štiklc|epizodo] ;[na ]<name>)"
requires_context:
domain: media_player
25 changes: 25 additions & 0 deletions sentences/sl/media_player_HassMediaPrevious.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: sl
intents:
HassMediaPrevious:
data:
- sentences:
- "[predvajaj] (prejšnj(o|i|e)| zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]; [na] <name>"
- "vrni [se na] (prejšnj(o|i|e)| zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]; [na] <name>"
- "ponovi (prejšnj(o|i|e) | zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad] [na] <name>"
- "<name> [ponovno] (predvajaj|ponovi|vrni se) [na] (prejšnj(o|i|e)| zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]"
requires_context:
domain: media_player

- sentences:
- "pojdi nazaj [[na] (prejšnj(o|i|e)| zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]]"
- "ponovi (prejšnj(o|i|e) | zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]"
- "ponov(i|no) (predvajaj|zavrti) (prejšnj(o|i|e)| zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]"
- "(ponovitev|ponovi)"
requires_context:
area:
slot: true
- sentences:
- "pojdi nazaj [na] [(prejšnj(o|i|e) | zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]] [v|na ] <area>"
- "(ponov(i|no) [(predvajaj|zavrti)] [(prejšnj(o|i|e) | zadnj(o|i|e))] [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]; [v|na ] <area>)"
- "((predvajaj|zavrti) (prejšnj(o|i|e) | zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad] [ponovno];[v|na ] <area>)"
- "[v|na ] <area> [ponov(i|no)] (predvajaj|zavrti) (prejšnj(o|i|e) | zadnj(o|i|e)) [pesem|skladbo|oddajo|element|posnetek|epizodo|komad]"
46 changes: 46 additions & 0 deletions tests/sl/media_player_HassMediaPrevious.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
language: sl
tests:
- sentences:
- "predvajaj prejšnji element na TV"
- "vrni se na prejšnjo skladbo na TV"
- "ponovi zadnjo skladbo na TV"
- "TV predvajaj prejšnji element"
- "TV vrni se na prejšnjo skladbo"
- "TV prejšnjo skladbo"
- "TV predvajaj prejšnjo skladbo"
- "TV ponovno predvajaj prejšnjo skladbo"
- "TV ponovi zadnjo skladbo"
intent:
name: HassMediaPrevious
slots:
name: "TV"
response: "Predvajam prejšnjo"

- sentences:
- "pojdi nazaj"
- "pojdi nazaj na prejšnjo skladbo"
- "pojdi nazaj na zadnjo skladbo"
- "ponovi zadnjo"
- "ponovno predvajaj zadnjo skladbo"
- "ponovitev"
intent:
name: HassMediaPrevious
slots:
area: "Living Room"
context:
area: Living Room
response: "Predvajam prejšnjo"

- sentences:
- "pojdi nazaj v dnevni sobi"
- "pojdi nazaj na prejšnjo skladbo v dnevni sobi"
- "pojdi nazaj na zadnjo skladbo v dnevni sobi"
- "ponovi zadnjo skladbo v dnevni sobi"
- "v dnevni sobi ponovno zavrti zadnjo skladbo"
intent:
name: HassMediaPrevious
slots:
area: "dnevni sobi"
context:
area: Living Room
response: "Predvajam prejšnjo"