private void initializeTTS() { if (Util.Constants.DEV_DEBUG) { Debug.Log("Initializing TTS..."); } ttsHandler = new RTVoiceUWPBridge(); ttsHandler.DEBUG = Util.Config.DEBUG; //Debug.Log("TARGET FOLDER: " + ttsHandler.GetTargetFolder()); isInitialized = true; }
/// <summary> /// Constructor for VoiceProviderWSA. /// </summary> /// <param name="obj">Instance of the speaker</param> public VoiceProviderWSA(MonoBehaviour obj) : base(obj) { //Util.Config.DEBUG = true; //TODO only for tests #if !UNITY_EDITOR if (ttsHandler == null) { if (Util.Constants.DEV_DEBUG) { Debug.Log("Initializing TTS..."); } ttsHandler = new RTVoiceUWPBridge(); ttsHandler.DEBUG = Util.Config.DEBUG; } speakerObj.StartCoroutine(getVoices()); #endif }