Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        SpeechToText stt  = GetComponentInChildren <SpeechToText>();
        TextToSpeech tts  = GetComponentInChildren <TextToSpeech>();
        SimpleBot    chat = GetComponentInChildren <SimpleBot>();

        stt.settings = settings;
        Runnable.Run(stt.CreateService());

        tts.settings = settings;
        Runnable.Run(tts.CreateService());

        chat.settings = settings;
        Runnable.Run(chat.CreateService());
    }