From 9244eedc49af6f23983702ca0a8bdddd7c2eae79 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 24 Sep 2024 12:03:24 +0200 Subject: [PATCH] tts.openai.say doesn't need a language parameter - and its presence breaks playback --- platypush/plugins/tts/openai/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/tts/openai/__init__.py b/platypush/plugins/tts/openai/__init__.py index 2cd04c7e26..287cd50d0a 100644 --- a/platypush/plugins/tts/openai/__init__.py +++ b/platypush/plugins/tts/openai/__init__.py @@ -124,6 +124,8 @@ class TtsOpenaiPlugin(TtsPlugin): duration, channels etc.). """ response_processor: Optional[Process] = None + # The language argument isn't required here + player_args.pop('language', None) try: response = self._make_request(text, model=model, voice=voice)