From 0fce67957d25898707f1e1bf6d53780cc595cb1a Mon Sep 17 00:00:00 2001 From: matatonic Date: Thu, 22 Aug 2024 14:39:33 -0400 Subject: [PATCH] fixup debug messages --- speech.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/speech.py b/speech.py index 2bab189..11b4966 100755 --- a/speech.py +++ b/speech.py @@ -229,8 +229,8 @@ def map_voice_to_speaker(voice: str, model: str): return mod[voice] except KeyError as e: - logger.debug(f"Voice {mod}:{voice} not configured, auto-configuring.") - if mod == 'tts-1-hd': + logger.debug(f"Voice {model}:{voice} not configured, auto-configuring.") + if model == 'tts-1-hd': # Automatically enable voices if a wav file is present. voice = os.path.basename(voice) # strip any path info, just in case if os.path.isfile(os.path.join('voices', voice + '.wav')): @@ -474,7 +474,7 @@ async def generate_speech(request: GenerateSpeechRequest): # text -> in_q audio_path = get_speaker_samples(speaker) - logger.debug(f"{voice} wav samples: {audio_path}") + logger.debug(f"'{voice}' wav samples: {audio_path}") try: for text in all_text: