From 4fbfa3127436f15318dc60d4ffd32725a3583462 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Wed, 8 May 2024 14:24:53 -0700 Subject: [PATCH] Update for latest ovos-audio compat. --- neon_audio/tts/neon.py | 3 ++- requirements/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/neon_audio/tts/neon.py b/neon_audio/tts/neon.py index 3589c98..97951da 100644 --- a/neon_audio/tts/neon.py +++ b/neon_audio/tts/neon.py @@ -251,7 +251,8 @@ def _init_playback(self, playback_thread: NeonPlaybackThread = None): init_signal_bus(self.bus) TTS.playback = playback_thread or NeonPlaybackThread(TTS.queue) TTS.playback.set_bus(self.bus) - TTS.playback.attach_tts(self) + if hasattr(TTS.playback, "attach_tts"): + TTS.playback.attach_tts(self) if not TTS.playback.enclosure: TTS.playback.enclosure = EnclosureAPI(self.bus) if not TTS.playback.is_alive(): diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 52a3476..966fb5f 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,4 +1,4 @@ -ovos-audio~=0.0.2a38 +ovos-audio~=0.0.2a42 ovos-utils>=0.0.35,<0.2.0 ovos-config~=0.0.10 phoneme-guesser~=0.1