From eb102e6a955dbd5f32b8d63581ee160291b0e779 Mon Sep 17 00:00:00 2001 From: Yassine Selmi Date: Sun, 30 Oct 2022 17:08:16 -0400 Subject: [PATCH] Fixed bytes and str concatenation --- custom_components/azure_tts/tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/azure_tts/tts.py b/custom_components/azure_tts/tts.py index 4058dba..60d76b8 100644 --- a/custom_components/azure_tts/tts.py +++ b/custom_components/azure_tts/tts.py @@ -405,7 +405,7 @@ def get_tts_audio(self, message, language, options=None): prosody.set('pitch', self._pitch) prosody.set('contour', self._contour) - _LOGGER.debug("Azure TTS - Request body: "+ ElementTree.tostring(body)) + _LOGGER.debug(ElementTree.tostring(body)) response = requests.post(endpoint, ElementTree.tostring(body), headers=headers) @@ -414,4 +414,4 @@ def get_tts_audio(self, message, language, options=None): except Exception as e: _LOGGER.error("Error occurred for Azure TTS: %s", e) return (None, None) - return ("mp3", data) \ No newline at end of file + return ("mp3", data)