From 6f140f3a5348316d0b050dd59bac560a0c618912 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Fri, 13 Sep 2024 16:20:38 -0700 Subject: [PATCH] More logging --- neon_audio/service.py | 7 +++++++ neon_audio/tts/neon.py | 1 + 2 files changed, 8 insertions(+) diff --git a/neon_audio/service.py b/neon_audio/service.py index 4993975..35ac709 100644 --- a/neon_audio/service.py +++ b/neon_audio/service.py @@ -31,6 +31,8 @@ import ovos_plugin_manager.templates.tts from threading import Event + +from ovos_bus_client import Message from ovos_utils.log import LOG, log_deprecation from neon_audio.tts import TTSFactory from neon_utils.messagebus_utils import get_messagebus @@ -186,3 +188,8 @@ def handle_get_tts(self, message): def init_messagebus(self): self.bus.on('neon.get_tts', self.handle_get_tts) PlaybackService.init_messagebus(self) + + def execute_tts(self, utterance, ident, listen=False, message: Message = None): + LOG.debug(f"START {utterance}") + PlaybackService.execute_tts(self, utterance, ident, listen, message) + LOG.debug(f"END {utterance}") diff --git a/neon_audio/tts/neon.py b/neon_audio/tts/neon.py index 00da849..dce0170 100644 --- a/neon_audio/tts/neon.py +++ b/neon_audio/tts/neon.py @@ -368,6 +368,7 @@ def execute(self, sentence: str, ident: str = None, listen: bool = False, kwargs: (dict) optional keyword arguments to be passed to TTS engine get_tts method """ + LOG.debug(f"execute: {sentence}") stopwatch = Stopwatch("get_tts", True, self.bus) if message: # Make sure to set the speaking signal now