Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Sep 13, 2024
1 parent 9353ce0 commit 6f140f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions neon_audio/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}")
1 change: 1 addition & 0 deletions neon_audio/tts/neon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f140f3

Please sign in to comment.