From b49b9759999e35bd262f364044e775d88a3b385b Mon Sep 17 00:00:00 2001 From: drinfernoo <2319508+drinfernoo@users.noreply.github.com> Date: Fri, 22 Oct 2021 14:50:32 -0700 Subject: [PATCH] Allow different voices in Watson TTS calls (#56811) --- homeassistant/components/watson_tts/tts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py index 610ad61132e..b02235d4d45 100644 --- a/homeassistant/components/watson_tts/tts.py +++ b/homeassistant/components/watson_tts/tts.py @@ -191,7 +191,9 @@ class WatsonTTSProvider(Provider): def get_tts_audio(self, message, language=None, options=None): """Request TTS file from Watson TTS.""" response = self.service.synthesize( - text=message, accept=self.output_format, voice=self.default_voice + text=message, + accept=self.output_format, + voice=options.get(CONF_VOICE, self.default_voice), ).get_result() return (CONTENT_TYPE_EXTENSIONS[self.output_format], response.content)