The original MS TTS cannot change parameters like gender and type dynamically, as it pays no attention to the option parameter.
This component passes over optional
- gender
- type
- rate
- volume
- pitch
- contour
parameters.
Clone this repo under custom_components
eg.
cd [HA PATH]/custom_components
git clone https://github.com/realthk/microsoft_tts.git
and restart Home Assistant
action:
- service: tts.microsoft_say
data:
entity_id: media_player.mpd
message: teszt2
options:
gender: Female
type: NoemiNeural
Where gender
is Male or Female, type
is "Voice name" without the language prefix from Microsoft's documentation, eg. TamasNeural