Adapted Grotto BT to updated speech functions; add intents to german file
parent
869cb6a102
commit
286ee2a59c
|
@ -14,15 +14,15 @@
|
||||||
Tree("32_Grotto_Story_B_Grotto") {
|
Tree("32_Grotto_Story_B_Grotto") {
|
||||||
// --- Story B Grotto - Antwort Reise ---
|
// --- Story B Grotto - Antwort Reise ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.SynthesizeText("Ich möchte nirgends sonst auf der Welt leben. Möchtest du denn mit Francesca in der Küche etwas aushelfen oder wartest du im Garten auf sie?", "de-DE", "")
|
BTC.SynthesizeText("Ich möchte nirgends sonst auf der Welt leben. Möchtest du denn mit Francesca in der Küche etwas aushelfen oder wartest du im Garten auf sie?")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
//BTC.SetSpeechRecognitionLanguage("it-IT")
|
//BTC.SetSpeechRecognitionLanguage("it-IT")
|
||||||
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.2", "L’aiuto in cucina.")
|
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.2", "L’aiuto in cucina.")
|
||||||
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.4", "Preferisco aspettarla nella sala del grotto. Non so cucinare.")
|
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.4", "Preferisco aspettarla nella sala del grotto. Non so cucinare.")
|
||||||
|
|
||||||
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.2", "Ich helfe in der Küche., Ich möchte aushelfen., Ich möchte Francesca helfen., Ich möchte in der Küche helfen.")
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.2")
|
||||||
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.4", "Ich warte im Garten auf sie., Ich warte auf sie., Ich bleibe im Garten.")
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Nachfrage_Nonna_Grotto.4")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -54,7 +54,7 @@ Tree("32_Grotto_Story_B_Grotto") {
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
// --- Story B Grotto - Nachfrage Nonna Grotto ---
|
// --- Story B Grotto - Nachfrage Nonna Grotto ---
|
||||||
// SpeechIntentRecognized Failed: kein Intent erkannt
|
// SpeechIntentRecognized Failed: kein Intent erkannt
|
||||||
BTC.SynthesizeText("Was wolltest du sagen? Ich habe es nicht verstanden. Möchtest du mithelfen oder lieber im Garten warten?", "de-DE", "")
|
BTC.SynthesizeText("Was wolltest du sagen? Ich habe es nicht verstanden. Möchtest du mithelfen oder lieber im Garten warten?")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
@ -99,11 +99,11 @@ Tree("32_Grotto_Story_B_Grotto") {
|
||||||
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
|
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
|
||||||
// --- Story B Grotto - Antwort Nonna Kueche ---
|
// --- Story B Grotto - Antwort Nonna Kueche ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.SynthesizeText("Oh, das ist wunderbar, vielen Dank! Anschliessend seid ihr selbstverständlich zum Essen eingeladen.", "de-DE", "")
|
BTC.SynthesizeText("Oh, das ist wunderbar, vielen Dank! Anschliessend seid ihr selbstverständlich zum Essen eingeladen.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Kueche.2", "Tante grazie, è molto gentile da parte Sua (o altra risposta).")
|
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Kueche.2", "Tante grazie, è molto gentile da parte Sua (o altra risposta).")
|
||||||
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Kueche.2", "Vielen Dank, das ist nett (oder andere Antwort)")
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Kueche.2")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -138,11 +138,11 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Kueche") {
|
||||||
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
|
Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
|
||||||
// --- Story B Grotto - Antwort Nonna Grotto ---
|
// --- Story B Grotto - Antwort Nonna Grotto ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.SynthesizeText("Okay gut, mach es dir gemütlich. Hast du etwas zum Lesen dabei?", "de-DE", "")
|
BTC.SynthesizeText("Okay gut, mach es dir gemütlich. Hast du etwas zum Lesen dabei?")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.2", "Sì, grazie, ho qualcosa con me (o un'altra risposta)")
|
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.2", "Sì, grazie, ho qualcosa con me (o un'altra risposta)")
|
||||||
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.2", "Ja, danke, ich habe etwas dabei (oder andere Antwort)")
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.2")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -169,11 +169,11 @@ Tree("32_Grotto_Story_B_Grotto_Antwort_Nonna_Grotto") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BTC.SynthesizeText("Prima, viel Spass noch und dann guten Appetit!", "de-DE", "")
|
BTC.SynthesizeText("Prima, viel Spass noch und dann guten Appetit!")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.6", "Grazie nonna, ciao!")
|
//BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.6", "Grazie nonna, ciao!")
|
||||||
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.6", "Danke!")
|
BTC.AddPossbileSpeechIntent("Story_B_Grotto.Antwort_Nonna_Grotto.6")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -215,7 +215,7 @@ Tree("32_Grotto_Kueche_Intro") {
|
||||||
BTC.Hide("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
BTC.Hide("GO/NamedGrabEvent.INTERACTABLES.Schuerze")
|
||||||
|
|
||||||
//BTC.Run("AudioSource.AUDIO.Kueche2FIntro")
|
//BTC.Run("AudioSource.AUDIO.Kueche2FIntro")
|
||||||
BTC.SynthesizeText("Lies mir bitte das Rezept vor.", "de-DE", "")
|
BTC.SynthesizeText("Lies mir bitte das Rezept vor.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Rezept vorlesen: Button Klick
|
// Rezept vorlesen: Button Klick
|
||||||
|
@ -231,7 +231,7 @@ Tree("32_Grotto_Kueche_Intro") {
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
// keine Reaktion
|
// keine Reaktion
|
||||||
BTC.Wait(5)
|
BTC.Wait(5)
|
||||||
BTC.SynthesizeText("Was brauchen wir? Bitte lies mir das Rezept vor.", "de-DE", "")
|
BTC.SynthesizeText("Was brauchen wir? Bitte lies mir das Rezept vor.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
BTC.Run("NamedEventTrigger.HANDMENU.Option1Button")
|
BTC.Run("NamedEventTrigger.HANDMENU.Option1Button")
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
|
||||||
// Objekt geht zurueck
|
// Objekt geht zurueck
|
||||||
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.733, 1.362, -18.908)
|
BTC.SetPosition("GO/NamedGrabEvent/NamedOutline.INTERACTABLES.Risotto", -6.733, 1.362, -18.908)
|
||||||
|
|
||||||
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.", "de-DE", "")
|
BTC.SynthesizeText("Das hast du an den falschen Ort gestellt.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
BTC.SetBool("RisottoIsSnapped", false)
|
BTC.SetBool("RisottoIsSnapped", false)
|
||||||
}
|
}
|
||||||
|
@ -380,7 +380,7 @@ Tree("32_Grotto_Kueche_Zwiebeln_schneiden") {
|
||||||
Tree("32_Grotto_Kueche_alles_gefunden") {
|
Tree("32_Grotto_Kueche_alles_gefunden") {
|
||||||
// --- Kueche - alles gefunden ---
|
// --- Kueche - alles gefunden ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.SynthesizeText("Super, du hast alles gefunden. Bitte gib nun etwas Olivenöl in den Topf.", "de-DE", "")
|
BTC.SynthesizeText("Super, du hast alles gefunden. Bitte gib nun etwas Olivenöl in den Topf.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Oel in Topf geben - Particle Trigger
|
// Oel in Topf geben - Particle Trigger
|
||||||
|
@ -395,8 +395,8 @@ Tree("32_Grotto_Kueche_alles_gefunden") {
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche3Fallesgefun")
|
BTC.Run("AudioSource.AUDIO.Kueche3Fallesgefun")
|
||||||
|
|
||||||
// Frage beantworten
|
// Frage beantworten
|
||||||
BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.4", "Ja.")
|
BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.4")
|
||||||
BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.6", "Nein.")
|
BTC.AddPossbileSpeechIntent("Kueche.alles_gefunden.6")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -531,8 +531,8 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1FKochenAnza")
|
BTC.Run("AudioSource.AUDIO.Kueche1FKochenAnza")
|
||||||
|
|
||||||
// Frage beantworten
|
// Frage beantworten
|
||||||
BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.2", "sehr oft, fast täglich (oder andere Antwort)")
|
BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.2")
|
||||||
BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.4", "fast nie (oder andere Antwort)")
|
BTC.AddPossbileSpeechIntent("Kueche.Kochen_Anzahl.4")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
@ -670,7 +670,7 @@ Tree("32_Grotto_Kueche_Selbststaendig_Kochen") {
|
||||||
Tree("32_Grotto_Kueche_Parmigiano") {
|
Tree("32_Grotto_Kueche_Parmigiano") {
|
||||||
// --- Kueche - Parmigiano ---
|
// --- Kueche - Parmigiano ---
|
||||||
Composite(Sequence) {
|
Composite(Sequence) {
|
||||||
BTC.SynthesizeText("Schau, ich habe dir den Parmigiano hingestellt. Du kannst ihn nun in den Topf geben.", "de-DE", "")
|
BTC.SynthesizeText("Schau, ich habe dir den Parmigiano hingestellt. Du kannst ihn nun in den Topf geben.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Parmigiano in Topf geben
|
// Parmigiano in Topf geben
|
||||||
|
@ -678,7 +678,7 @@ Tree("32_Grotto_Kueche_Parmigiano") {
|
||||||
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Parmigiano")
|
BTC.Set("Collider.INTERACTABLES.Topf", "otherTag", "Parmigiano")
|
||||||
BTC.Run("Collider.INTERACTABLES.Topf")
|
BTC.Run("Collider.INTERACTABLES.Topf")
|
||||||
|
|
||||||
BTC.SynthesizeText("Bist du fertig?", "de-DE", "")
|
BTC.SynthesizeText("Bist du fertig?")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Antwort User
|
// Antwort User
|
||||||
|
@ -691,7 +691,7 @@ Tree("32_Grotto_Kueche_Parmigiano") {
|
||||||
}
|
}
|
||||||
BTC.Hide("GO.HANDMENU.Option1Button")
|
BTC.Hide("GO.HANDMENU.Option1Button")
|
||||||
|
|
||||||
BTC.SynthesizeText("Bitte stelle den Risotto hier hin.", "de-DE", "")
|
BTC.SynthesizeText("Bitte stelle den Risotto hier hin.")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Stelle für Pfanne leuchtet
|
// Stelle für Pfanne leuchtet
|
||||||
|
@ -709,11 +709,11 @@ Tree("32_Grotto_Kueche_Parmigiano") {
|
||||||
|
|
||||||
// --- Kueche - Outro ---
|
// --- Kueche - Outro ---
|
||||||
BTC.Run("AudioSource.AUDIO.Kueche1GOutro")
|
BTC.Run("AudioSource.AUDIO.Kueche1GOutro")
|
||||||
BTC.SynthesizeText("Ich bin Giuseppe, Francescas Grossonkel. Und wer bist du?", "de-DE", "")
|
BTC.SynthesizeText("Ich bin Giuseppe, Francescas Grossonkel. Und wer bist du?")
|
||||||
BTC.SpeechOutputEnded()
|
BTC.SpeechOutputEnded()
|
||||||
|
|
||||||
// Name sagen
|
// Name sagen
|
||||||
BTC.AddPossbileSpeechIntent("Kueche.Outro.4", "Mein Name ist xy. (oder andere Antwort)")
|
BTC.AddPossbileSpeechIntent("Kueche.Outro.4")
|
||||||
BTC.StartSpeechIntentRecognition()
|
BTC.StartSpeechIntentRecognition()
|
||||||
|
|
||||||
Composite(Race) {
|
Composite(Race) {
|
||||||
|
|
|
@ -1,12 +1,38 @@
|
||||||
{
|
{
|
||||||
"intents": [
|
"intents": [
|
||||||
{
|
{
|
||||||
"intentID": "Kueche.start_dialog.1",
|
"intentID": "Story_B_Grotto.Nachfrage_Nonna_Grotto.2",
|
||||||
"intentSentences": [
|
"intentSentences": [
|
||||||
"Ja, ich bin bereit.",
|
"Ich helfe in der K\u00fcche.",
|
||||||
"Ich bin bereit.",
|
"Ich m\u00f6chte aushelfen.",
|
||||||
"Es kann losgehen.",
|
"Ich m\u00f6chte Francesca helfen.",
|
||||||
"Wir k\u00f6nnen starten."
|
"Ich m\u00f6chte in der K\u00fcche helfen."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_B_Grotto.Nachfrage_Nonna_Grotto.4",
|
||||||
|
"intentSentences": [
|
||||||
|
"Ich warte im Garten auf sie.",
|
||||||
|
"Ich warte auf sie.",
|
||||||
|
"Ich bleibe im Garten."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_B_Grotto.Antwort_Nonna_Kueche.2",
|
||||||
|
"intentSentences": [
|
||||||
|
"Vielen Dank, das ist nett."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_B_Grotto.Antwort_Nonna_Grotto.2",
|
||||||
|
"intentSentences": [
|
||||||
|
"Ja, danke, ich habe etwas dabei."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Story_B_Grotto.Antwort_Nonna_Grotto.6",
|
||||||
|
"intentSentences": [
|
||||||
|
"Danke!"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -28,13 +54,6 @@
|
||||||
"Nein, gar nicht."
|
"Nein, gar nicht."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"intentID": "Kueche.Interesse_Kochen.2",
|
|
||||||
"intentSentences": [
|
|
||||||
"Ich koche gerne xy.",
|
|
||||||
"Ich mache gerne xy."
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"intentID": "Kueche.Kochen_Anzahl.2",
|
"intentID": "Kueche.Kochen_Anzahl.2",
|
||||||
"intentSentences": [
|
"intentSentences": [
|
||||||
|
@ -52,6 +71,30 @@
|
||||||
"Nur am Wochenende."
|
"Nur am Wochenende."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Kueche.Outro.4",
|
||||||
|
"intentSentences": [
|
||||||
|
"Mein Name ist xy.",
|
||||||
|
"Ich heisse xy.",
|
||||||
|
"Ich bin xy."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Kueche.start_dialog.1",
|
||||||
|
"intentSentences": [
|
||||||
|
"Ja, ich bin bereit.",
|
||||||
|
"Ich bin bereit.",
|
||||||
|
"Es kann losgehen.",
|
||||||
|
"Wir k\u00f6nnen starten."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"intentID": "Kueche.Interesse_Kochen.2",
|
||||||
|
"intentSentences": [
|
||||||
|
"Ich koche gerne xy.",
|
||||||
|
"Ich mache gerne xy."
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"intentID": "Kueche.Desinteresse_Kochen.2",
|
"intentID": "Kueche.Desinteresse_Kochen.2",
|
||||||
"intentSentences": [
|
"intentSentences": [
|
||||||
|
|
Loading…
Reference in New Issue