public static TextToSpeechBase Create() { TextToSpeechBase ret = null; try { if (Environment.OSVersion.Platform != PlatformID.Unix) ret = Activator.CreateInstance(Type.GetType("ChobbyLauncher.TextToSpeechWindows")) as TextToSpeechBase; else ret = new TextToSpeechLinux(); } catch (Exception ex) { Trace.TraceWarning("Failed to init VoiceCommands:{0}", ex.Message); } return ret; }
public static TextToSpeechBase Create() { TextToSpeechBase ret = null; try { if (Environment.OSVersion.Platform != PlatformID.Unix) { ret = Activator.CreateInstance(Type.GetType("ChobbyLauncher.TextToSpeechWindows")) as TextToSpeechBase; } else { ret = new TextToSpeechLinux(); } } catch (Exception ex) { Trace.TraceWarning("Failed to init VoiceCommands:{0}", ex.Message); } return(ret); }