Skip to content

Commit

Permalink
Troubleshooting NeonPlaybackThread
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Feb 12, 2025
1 parent 07b81b5 commit e7e7ff1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e7e7ff1

Please sign in to comment.