有人知道为什么这不会改变googletext-to-speech返回的输出的音调/声音吗?
SynthesisInput input = SynthesisInput.newBuilder().setText("I'm Taz").build();
VoiceSelectionParams voiceParams = VoiceSelectionParams.newBuilder().setName("en-US-Wavenet-D").setLanguageCode("en-US").build();
AudioConfig audioConfig = AudioConfig.newBuilder().setAudioEncoding(AudioEncoding.MP3).setPitch(-20).build();
SynthesizeSpeechResponse speakResponse = textToSpeechClient.synthesizeSpeech(input, voiceParams, audioConfig);
ByteString audioContents = speakResponse.getAudioContent();
暂无答案!
目前还没有任何答案,快来回答吧!