forked from platypush/platypush
[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:
parent
709b90fa4b
commit
1067ab04d9
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue