private void GetVoicesButtonOnClickHandler() { _gcTextToSpeech.GetVoices(new GetVoicesRequest() { languageCode = _gcTextToSpeech.PrepareLanguage((Enumerators.LanguageCode)Enumerators.LanguageCode.en_GB) }); string content = "Hi Luis Arturo"; if (string.IsNullOrEmpty(content) || _currentVoice == null) { return; } _gcTextToSpeech.Synthesize(content, new VoiceConfig() { gender = _currentVoice.ssmlGender, languageCode = _currentVoice.languageCodes[0], name = _currentVoice.name }, ssmlToggle.isOn, double.Parse(pitchInputField.text, _provider), double.Parse(speakingRateInputField.text, _provider), _currentVoice.naturalSampleRateHertz); }
private void GetVoicesButtonOnClickHandler() { _gcTextToSpeech.GetVoices(new GetVoicesRequest() { languageCode = _gcTextToSpeech.PrepareLanguage((Enumerators.LanguageCode)languageCodesDropdown.value) }); }