SynthesisInput synthesisInput = SynthesisInput.newBuilder()
.setText(textToSpeechRequest.getMessage())
.build();
AudioConfig audioConfig = AudioConfig.newBuilder()
.setAudioEncoding(AudioEncoding.LINEAR16)
.build();
VoiceSelectionParams voiceSelectionParams = VoiceSelectionParams.newBuilder()
.setLanguageCode("ko-KR")
.setSsmlGender(SsmlVoiceGender.MALE)
// .setName("ko-KR-Standard-A")
.build();
SynthesizeSpeechRequest synthesizeSpeechRequest = SynthesizeSpeechRequest.newBuilder()
.setInput(synthesisInput)
.setAudioConfig(audioConfig)
.setVoice(voiceSelectionParams)
.build();
SynthesizeSpeechResponse speechResponse = textToSpeechClient.synthesizeSpeech(synthesizeSpeechRequest);
This is my tts code. Currently, I have two problems that I can't solve.
problem 1
problem 2