From e7e7ff10bc89e904fcc439d0922772847a137754 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 11 Feb 2025 17:51:24 -0800 Subject: [PATCH] Troubleshooting NeonPlaybackThread --- neon_audio/tts/neon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/neon_audio/tts/neon.py b/neon_audio/tts/neon.py index 9be5834..ecf4176 100644 --- a/neon_audio/tts/neon.py +++ b/neon_audio/tts/neon.py @@ -201,6 +201,10 @@ def resume(self): LOG.debug(f"Playback thread resumed") PlaybackThread.resume(self) + def run(self, *args, **kwargs): + LOG.info("Playback thread started") + PlaybackThread.run(self, *args, **kwargs) + class WrappedTTS(TTS): def __new__(cls, base_engine, *args, **kwargs): @@ -260,7 +264,7 @@ def _init_playback(self, playback_thread: NeonPlaybackThread = None): return TTS.playback.shutdown() if not isinstance(playback_thread, NeonPlaybackThread): - LOG.exception("Received invalid playback_thread") + LOG.exception(f"Received invalid playback_thread: {playback_thread}") playback_thread = None init_signal_bus(self.bus) TTS.playback = playback_thread or NeonPlaybackThread(TTS.queue)