Add audio and set language to IT

dev
Nadine Ganz 2024-11-21 21:29:58 +01:00
parent 3742a69a40
commit 75d9662c08
7 changed files with 400 additions and 226603 deletions

View File

@ -1,7 +1,7 @@
Tree("Root") {
Composite(Sequence) {
BTC.InitializeSpeechManager()
//BTC.SetSpeechRecognitionLanguage("it-IT")
BTC.SetSpeechRecognitionLanguage("it-IT")
BTC.Wait(5)
BTC.SetBool("startdialogue", false)
@ -11,14 +11,14 @@
Composite(Race) {
Composite(Sequence) {
BTC.CompareBool("startdialogue", false)
BTC.SynthesizeText("Gib mir Bescheid, sobald du bereit bist.")
// BTC.SynthesizeText("Dimmi quando possiamo cominciare.")
//BTC.SynthesizeText("Gib mir Bescheid, sobald du bereit bist.")
BTC.SynthesizeText("Dimmi quando possiamo cominciare.")
BTC.SpeechOutputEnded()
BTC.StartSpeechIntentRecognition()
Composite(Race) {
Composite(Sequence) {
BTC.Wait(10)
BTC.Wait(15)
BTC.CompareUserSpeechInputStarted(false)
BTC.AbortSpeechEventListener()
BTC.StopSpeechIntentRecognition()
@ -37,8 +37,8 @@
Composite(Sequence) {
BTC.CompareBool("startdialogue")
BTC.ClearPossbileSpeechIntents()
BTC.SynthesizeText("Wir beide werden jetzt ein feines Risotto nach dem Rezept meiner Nonna kochen. Kochst du denn gerne?")
//BTC.SynthesizeText("Noi due adesso facciamo un buon risotto basato sulla ricetta di mia nonna. Ti piace cucinare?")
//BTC.SynthesizeText("Wir beide werden jetzt ein feines Risotto nach dem Rezept meiner Nonna kochen. Kochst du denn gerne?")
BTC.SynthesizeText("Noi due adesso facciamo un buon risotto basato sulla ricetta di mia nonna. Ti piace cucinare?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -77,9 +77,9 @@
// Fallback Button
Composite(Marathon) {
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Ja")
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "")
BTC.Show("GO.HANDMENU.Option1Button")
BTC.Set("TextMeshPro.HANDMENU.Option2Button", "text", "Nein")
BTC.Set("TextMeshPro.HANDMENU.Option2Button", "text", "No")
BTC.Show("GO.HANDMENU.Option2Button")
}
@ -115,9 +115,9 @@
// Fallback Button
Composite(Marathon) {
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Ja")
BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "")
BTC.Show("GO.HANDMENU.Option1Button")
BTC.Set("TextMeshPro.HANDMENU.Option2Button", "text", "Nein")
BTC.Set("TextMeshPro.HANDMENU.Option2Button", "text", "No")
BTC.Show("GO.HANDMENU.Option2Button")
}
@ -152,8 +152,8 @@
Tree("32_Grotto_Kueche_Interesse_Kochen") {
// --- Kueche - Interesse Kochen ---
Composite(Sequence) {
BTC.SynthesizeText("Was kochst du denn manchmal so?")
//BTC.SynthesizeText("Cosa ti piace cucinare?")
//BTC.SynthesizeText("Was kochst du denn manchmal so?")
BTC.SynthesizeText("Cosa ti piace cucinare?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -196,8 +196,8 @@ Tree("32_Grotto_Kueche_Interesse_Kochen") {
Tree("32_Grotto_Kueche_Kochen_Anzahl") {
// --- Kueche - Kochen Anzahl ---
Composite(Sequence) {
BTC.SynthesizeText("Ja, das mag ich auch gerne. Wie oft kochst du denn so?")
//BTC.SynthesizeText("Sì, questo piace anche a me. Cucini spesso?")
//BTC.SynthesizeText("Ja, das mag ich auch gerne. Wie oft kochst du denn so?")
BTC.SynthesizeText("Sì, questo piace anche a me. Cucini spesso?")
BTC.SpeechOutputEnded()
// Frage beantworten
@ -241,8 +241,8 @@ Tree("32_Grotto_Kueche_Kochen_Anzahl") {
Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
// --- Kueche - Desinteresse Kochen ---
Composite(Sequence) {
BTC.SynthesizeText("Okay, aber heute kochen wir gemeinsam und das Risotto ist auch nicht allzu schwer. Was ist denn dein Lieblingsgericht?")
//BTC.SynthesizeText("Okay, ma oggi cuciniamo insieme. Fare un risotto non è complicato. Qual è il tuo piatto preferito?")
//BTC.SynthesizeText("Okay, aber heute kochen wir gemeinsam und das Risotto ist auch nicht allzu schwer. Was ist denn dein Lieblingsgericht?")
BTC.SynthesizeText("Okay, ma oggi cuciniamo insieme. Fare un risotto non è complicato. Qual è il tuo piatto preferito?")
BTC.SpeechOutputEnded()
// Lieblingsgericht beantworten
@ -278,8 +278,8 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
}
}
BTC.SynthesizeText("Ja, das mag ich auch gerne.")
//BTC.SynthesizeText("Sì, questo piace anche a me.")
//BTC.SynthesizeText("Ja, das mag ich auch gerne.")
BTC.SynthesizeText("Sì, questo piace anche a me.")
BTC.SpeechOutputEnded()
RunTree("32_Grotto_Kueche_Interaktion")
@ -288,8 +288,8 @@ Tree("32_Grotto_Kueche_Desinteresse_Kochen") {
Tree("32_Grotto_Kueche_Interaktion") {
Composite(Sequence) {
BTC.SynthesizeText("Gut, dann fangen wir jetzt mit dem Risotto an. Gebe bitte die Pilze in den Topf.")
//BTC.SynthesizeText("Bene, allora cominciamo con il risotto. Metti i funghi nella pentola.")
//BTC.SynthesizeText("Gut, dann fangen wir jetzt mit dem Risotto an. Gebe bitte die Pilze in den Topf.")
BTC.SynthesizeText("Bene, allora cominciamo con il risotto. Metti i funghi nella pentola.")
BTC.SpeechOutputEnded()
BTC.Enable("NamedOutline.INTERACTABLES.Teller")

View File

@ -1 +1 @@
2024-11-20T19:51:04.3760380Z
2024-11-21T20:21:37.9755870Z

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FMODUnity;
public class OnCollideSound : MonoBehaviour
{
[SerializeField]
EventReference soundRef;
[SerializeField]
float minCollisionForce = 1.0f;
private void OnCollisionEnter(Collision collision)
{
if (collision.relativeVelocity.magnitude >= minCollisionForce)
{
RuntimeManager.PlayOneShot(soundRef, transform.position);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2da7b7bcbb7784731bdc815f98ddc707
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -140,9 +140,6 @@ PlayerSettings:
bundleVersion: 0.1
preloadedAssets:
- {fileID: 11400000, guid: be340e3c48769439d8d18a5a2bccd498, type: 2}
- {fileID: 11400000, guid: bfa1182bd221b4ca89619141f66f1260, type: 2}
- {fileID: -8196854396901781169, guid: 1a4c68ca72a83449f938d669337cb305, type: 2}
- {fileID: -64324148185763206, guid: a9a6963505ddf7f4d886008c6dc86122, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1