0

Google cloud npm package text to speech the FEMALE voice not working but its always come with NEUTRAL voice

                                                                                                                                 ```

export async function quickStart(text) { const request = { input: { text: text }, // Select the language and SSML voice gender (optional) voice: { languageCode: 'en-US'

saba
  • 1

1 Answers1

3

I needed to add the custom voice name to get it to work. The ssmlGender doesn't seem to have any impact on it's own anymore:

voice: {
        languageCode: 'de-DE',
        ssmlGender: 'MALE', //https://cloud.google.com/text-to-speech/docs/reference/rest/v1/SsmlVoiceGender
        name:'de-DE-Standard-B',
}
vinni
  • 633
  • 2
  • 8
  • 32