I have been off the scene for some months now and I feel I should know this, so apologies in advance.
I have a general notification engine and I can dynamically set the tts
service. I’ve just subscribed to Nabu Casa so am trying out the Google Neural Netwoks voices.
I’d like to pass the language and gender but not all tts services accept them so those calls fail.
Specifically, I want to do this:
- service_template: >
tts.{{ states('input_select.announcement_voice') }}_say
data_template:
entity_id: >
{{ media_player }}
message: >
{{ message }}
options:
gender: >
{{ states('input_select.announcement_gender') }}
language: >
{{ states('input_select.announcement_language') }}
But google_translate (for example) does not accept options / gender
or language
so causes an error.
Is there a way around this? I seem to remember the use of none
being introduced but I can’t find any reference to it now.
Thanks.