예제 #1
0
        public GoogleTextToSpeechService(VoiceConfiguration voiceConfiguration)
        {
            this.voiceConfiguration = voiceConfiguration;
            client = TextToSpeechClient.Create();

            LoadAllAudioFiles();
        }
예제 #2
0
        public static VoiceConfiguration ProvideVoiceConfiguration()
        {
            if (voiceConfiguration == null)
            {
                voiceConfiguration = new SpanishFemaleConfiguration();
            }

            return(voiceConfiguration);
        }