From 1067ab04d9eb12f78346ee494b1d8ca95cc3378a Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 31 May 2024 21:10:48 +0200 Subject: [PATCH] [tts.picovoice] Adapted to the new `orca.synthesize` API. The new API no longer returns a list of numeric values alone. Instead, it returns a tuple where the first element is the raw audio, and the second element contains extra info on the rendered phonemes. --- platypush/plugins/tts/picovoice/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/tts/picovoice/__init__.py b/platypush/plugins/tts/picovoice/__init__.py index 69c00c6c90..7f367c089a 100644 --- a/platypush/plugins/tts/picovoice/__init__.py +++ b/platypush/plugins/tts/picovoice/__init__.py @@ -178,7 +178,7 @@ class TtsPicovoicePlugin(TtsPlugin): self._play_audio( orca=orca, pcm=np.array( - orca.synthesize(text, speech_rate=speech_rate), + orca.synthesize(text, speech_rate=speech_rate)[0], dtype='int16', ), )