Google TTS language

Why does this:

tts:
  - platform: google
    language: 'en-GB'

Give me this error?

Invalid config for [tts.google]: value is not allowed for dictionary value @ data['language']. Got 'en-gb'. (See ?, line ?). Please check the docs at https://home-assistant.io/components/tts.google/

The docs example is:

tts:
  - platform: google
    language: 'de'

and the docs say:

Configuration variables:

And the Google docs page referred to says (I can’t format this with tabs but hopefully you know what I mean!):

Language - Language code - Language (English name)
English (Great Britain) - en-GB - English (United Kingdom)

I’ve tried ‘en-gb’ too - same error

try this,

language: 'en'

That seems to pass config checks.

Although, reading the docs, that is what the default languge is anyway, or should be. I seem to have recently been getting a mix of English and American google tts.

1 Like

Ha!! yes!
this is why I changed it from ‘en’ to ‘en-gb’!
What on earth is going on with that accent??!!

1 Like

ok, litte more playing around, and this also seems to pass config checks,

language: 'en-uk'

So give that a try.

I spent too much time in America, so am used to it :smiley: :smiley:

It is actually a better sounding voice in terms of it sounding more natural. I’d rather have an English accent though :slight_smile:

Doesn’t change the weirdness of it suddenly changing for no reason. I’m glad it’s not just me though!

Just restarted with this, and it seem’s to be in English, so will give it a try and see what happens.

1 Like

The language list refers to “Speech to Text” but NOT “Text to Speech”
It is very misleading.

2 Likes

I am trying to get google synthesis to use the same language (accent) that my google speaker uses, which is american english… However no matter if I use en-uk, or en-us I hear the same voice.

Does anyone knows what might the reason be?