Google tts error

I am trying to use Neural2 or studio voices for my tts setup:

tts:
- platform: google_cloud
  key_file: google_cloud-credentials.json
  voice: en-US-Studio-O

But I keep getting this error

google.api_core.exceptions.InvalidArgument: 400 Gender neutral voices are not supported.
Looking online doesn’t bring much except for this page: https://cloud.google.com/text-to-speech/docs/reference/rest/v1/SsmlVoiceGender
Is there a solution for this error?

I’m getting the same thing.

1 Like