public GoogleTextToSpeechService(VoiceConfiguration voiceConfiguration) { this.voiceConfiguration = voiceConfiguration; client = TextToSpeechClient.Create(); LoadAllAudioFiles(); }
public static VoiceConfiguration ProvideVoiceConfiguration() { if (voiceConfiguration == null) { voiceConfiguration = new SpanishFemaleConfiguration(); } return(voiceConfiguration); }