hasscc / hass-edge-tts

🗣️ Microsoft Edge TTS for Home Assistant, no need for app_key
315 stars 55 forks source link

Multiple services with different names use the config values from the last defined service #33

Open ALERTua opened 1 year ago

ALERTua commented 1 year ago

Defining:

tts:
  - platform: edge_tts
    service_name: edge_say
    language: en-US-ChristopherNeural

  - platform: edge_tts
    service_name: edge_say_ua
    language: uk-UA-PolinaNeural

Creates two services with the provided names correctly, but calling tts.edge_say uses the voice from edge_say_ua. The config values should be different for each defined service.

al-one commented 1 year ago

This is controlled by the HA component, there is nothing custom components can do.