Esempio n. 1
0
    //void Awake()
    //{
    //    if (_instance == null)
    //    {
    //        _instance = this;
    //        DontDestroyOnLoad(this);
    //    }
    //    else
    //    {
    //        if (this != _instance)
    //            Destroy(this.gameObject);
    //    }
    //}

    public void Init()
    {
        Debug.Log("TTSControl Init");

        //if(!isInitialize)
        //{
        DontDestroyOnLoad(this);

        if (g.CrazyWordLanguage == "Japanese")
        {
            languages = Languages.Japanese;
        }
        if (g.CrazyWordLanguage == "Chinese")
        {
            languages = Languages.Chinese;
        }
        if (g.CrazyWordLanguage == "Korean")
        {
            languages = Languages.Korean;
        }
        if (g.CrazyWordLanguage == "English")
        {
            languages = Languages.English;
        }
        if (g.CrazyWordLanguage == "German")
        {
            languages = Languages.German;
        }
        TTSManager.Initialize(transform.name, "OnTTSInit");
        //}
    }
Esempio n. 2
0
    void Start()
    {
        if (!PlayerPrefs.HasKey("BoardSize"))
        {
            PlayerPrefs.SetInt("BoardSize", 8);
        }
        TTSManager.Initialize(transform.name, "OnTTSInit");
        DateTime time1 = System.DateTime.Now;

        while (!TTSManager.IsInitialized() && (System.DateTime.Now - time1).TotalSeconds < 2)
        {
        }
        TTSManager.SetLanguage(TTSManager.POLISH);
        goMainMenu();
    }
        void Awake()
        {
            if (Application.platform != RuntimePlatform.Android)
            {
                status = Status.Unsupported;
                if (EventInitializationErrorOrUnsupported != null)
                {
                    EventInitializationErrorOrUnsupported();
                }

                return;
            }

#if TTS
            status = Status.Initializing;
            TTSManager.Initialize(transform.name, "OnTTSInit");
#else
            status = Status.Unsupported;
#endif
        }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        // Screen.sleepTimeout = SleepTimeout.NeverSleep;
        TTSManager.Initialize(transform.name, "OnTTSInit");


        if (TTSManager.IsInitialized())
        {
            if (_localeStrings != null && _localeStrings.Length > 0)
            {
                //_selectedLocale = GUILayout.SelectionGrid(_selectedLocale, _localeStrings, 3);
                TTSManager.SetLanguage(TTSManager.GetAvailableLanguages()[_selectedLocale]);
                TTSManager.SetLanguage(TTSManager.ENGLISH);
            }


            //  _pitch = TTSManager.SetPitch(_pitch, 0f, 2f);

            //  _speechRate = TTSManager.SetSpeechRate(_speechRate, 0f, 2f);
        }
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     // Screen.sleepTimeout = SleepTimeout.NeverSleep;
     TTSManager.Initialize(transform.name, "OnTTSInit");
 }
Esempio n. 6
0
 public void LoadSpeaker()
 {
     // Screen.sleepTimeout = SleepTimeout.NeverSleep;
     TTSManager.Initialize(transform.name, "OnTTSInit");
     Debug.Log("Initialized Speaker");
 }
Esempio n. 7
0
 // Use this for initialization
 void Awake()
 {
     TTSManager.Initialize(transform.name, "OnTTSInit");
 }
Esempio n. 8
0
 // Use this for initialization
 void Start()
 {
     // Screen.sleepTimeout = SleepTimeout.NeverSleep;
     TTSManager.Initialize(transform.name, "OnTTSInit");
     TTSManager.SetLanguage(TTSManager.JAPANESE);
 }