From 0fde5d9d301032129d7ca54aaaed0a98c5f5ad49 Mon Sep 17 00:00:00 2001 From: rany Date: Sat, 4 Nov 2023 18:12:51 +0200 Subject: [PATCH] Fix incorrect default pitch argument Signed-off-by: rany --- custom_components/edge_tts/tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/edge_tts/tts.py b/custom_components/edge_tts/tts.py index a5565a8..c44f11d 100644 --- a/custom_components/edge_tts/tts.py +++ b/custom_components/edge_tts/tts.py @@ -400,7 +400,7 @@ async def async_get_tts_audio(self, message, language, options=None): tts = EdgeCommunicate( message, voice=voice, - pitch=opt.get('pitch', '+0%'), + pitch=opt.get('pitch', '+0Hz'), rate=opt.get('rate', '+0%'), volume=opt.get('volume', '+0%'), )