Update 2.0 SBB
This commit is contained in:
		
							parent
							
								
									8a3e6a51f2
								
							
						
					
					
						commit
						885a58a199
					
				@ -1,18 +1,89 @@
 | 
			
		||||
Tree("Root") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
        BTC.InitializeSpeechManager()   // TODO: in Endversion loeschen
 | 
			
		||||
        BTC.InitializeSpeechManager()
 | 
			
		||||
        BTC.SetSpeechRecognitionLanguage("it-IT")
 | 
			
		||||
        BTC.SetVoiceName("it-IT-FabiolaNeural")
 | 
			
		||||
        BTC.SetVoiceName("it-IT-IsabellaMultilingualNeural")
 | 
			
		||||
 | 
			
		||||
        BTC.SynthesizeText("Sì, è proprio il mio preferito! Riempiamo i nostri zaini con qualche prelibatezza ticinese. Andiamo!")
 | 
			
		||||
        BTC.SpeechOutputEnded()
 | 
			
		||||
        Composite(Race) {
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                // Error in Speech Service: Cancel BTC Trees
 | 
			
		||||
                BTC.SpeechErrorOccured()
 | 
			
		||||
                BTC.SetBool("error")
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        BTC.SynthesizeText("Ecco, siamo arrivati a Bellinzona, è ora di scendere.")
 | 
			
		||||
        BTC.SpeechOutputEnded()
 | 
			
		||||
            RunTree("20_SBB_Story_A_Picknicken_Start")
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Go to Slideshow 2.1: Bellinzona Bahnhof to Geschaeft
 | 
			
		||||
        Composite(Sequence) {
 | 
			
		||||
            BTC.CompareBool("error")
 | 
			
		||||
            // Error Handling
 | 
			
		||||
            BTC.AbortSpeechEventListener()
 | 
			
		||||
            BTC.StopSpeechIntentRecognition()
 | 
			
		||||
            BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
 | 
			
		||||
            BTC.Show("GO.HANDMENU.SpeechButton")
 | 
			
		||||
            BTC.Set("TextMeshPro.HANDMENU.Option1Button", "text", "Restart")
 | 
			
		||||
            BTC.Show("GO.HANDMENU.Option1Button")
 | 
			
		||||
            BTC.Run("NamedEventTrigger.HANDMENU.Option1Button")
 | 
			
		||||
            BTC.Hide("GO.HANDMENU.Option1Button")
 | 
			
		||||
            BTC.Hide("GO.HANDMENU.SpeechButton")
 | 
			
		||||
            BTC.Hide("GO.HANDMENU.SpeechOptions")
 | 
			
		||||
        }                             
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Tree("20_SBB_Story_A_Picknicken_Start") {
 | 
			
		||||
    Composite(Sequence) {
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.FadeIn("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF1")
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        BTC.Run("MediaPlayer.VIDEOS.StartFidle2")
 | 
			
		||||
 | 
			
		||||
        BTC.AddPossbileSpeechIntent("Story_A_Picknicken-Start-U-2")
 | 
			
		||||
        BTC.StartSpeechIntentRecognition()
 | 
			
		||||
 | 
			
		||||
        Composite(Race) {
 | 
			
		||||
            // -- Race 1: User sagt etwas
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.UserStartedSpeechInput()
 | 
			
		||||
 | 
			
		||||
                Composite(Selector) {
 | 
			
		||||
                    // -- Selector 1: Intent erkannt
 | 
			
		||||
                    Composite(Sequence) {
 | 
			
		||||
                        BTC.SpeechIntentRecognized()
 | 
			
		||||
                        BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    // -- Selector 2: Intent nicht erkannt
 | 
			
		||||
                    Composite(Sequence) {
 | 
			
		||||
                        BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // -- Race 2: User sagt nichts
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.Wait(5)
 | 
			
		||||
                BTC.CompareUserSpeechInputStarted(false)
 | 
			
		||||
                BTC.AbortSpeechEventListener()
 | 
			
		||||
                BTC.StopSpeechIntentRecognition()
 | 
			
		||||
                BTC.ClearPossbileSpeechIntents()
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        BTC.Hide("MediaPlayer.VIDEOS.StartFidle2")
 | 
			
		||||
 | 
			
		||||
        Composite(Marathon) {
 | 
			
		||||
            BTC.Run("MediaPlayer.VIDEOS.StartF3")
 | 
			
		||||
 | 
			
		||||
            Composite(Sequence) {
 | 
			
		||||
                BTC.Wait(7)
 | 
			
		||||
                BTC.FadeOut("FadeScene.XRInteractionHandsSetup.Black")
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        BTC.Run("LoadScene.NEXT.22Geschaeft")
 | 
			
		||||
   }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -49,6 +49,12 @@
 | 
			
		||||
                "Scelgo il grotto."
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "intentID": "Story_A_Picknicken-Start-U-2",
 | 
			
		||||
            "intentSentences": [
 | 
			
		||||
                "Non vedo l'ora di mangiare."
 | 
			
		||||
            ]
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "intentID": "Zugabteil.Szenenwahl.3",
 | 
			
		||||
            "intentSentences": [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user