/// <summary> /// Return loaded <see cref="TextToSpeechConfiguration"/>. /// </summary> public static TextToSpeechConfiguration GetTextToSpeechConfiguration(this BaseRuntimeConfiguration runtimeConfiguration) { if (textToSpeechConfiguration == null) { textToSpeechConfiguration = TextToSpeechConfiguration.LoadConfiguration(); } return(textToSpeechConfiguration); }
/// <summary> /// Creates an provider, always loads the actual text to speech config to set it up. /// </summary> public ITextToSpeechProvider CreateProvider() { TextToSpeechConfiguration ttsConfiguration = TextToSpeechConfiguration.LoadConfiguration(); return(CreateProvider(ttsConfiguration)); }