google文本到语音audioconfig setpitch不工作

d4so4syb  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(238)

有人知道为什么这不会改变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();

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题