[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.
This commit is contained in:
Fabio Manganiello 2024-05-31 21:10:48 +02:00
parent 709b90fa4b
commit 1067ab04d9
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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',
),
)