Marti Umbert commited on
Commit
e96f5ff
·
1 Parent(s): 8b05aa3

whisperlivekit/audio_processor.py: activate translation

Browse files
Files changed (1) hide show
  1. whisperlivekit/audio_processor.py +1 -1
whisperlivekit/audio_processor.py CHANGED
@@ -519,7 +519,7 @@ class AudioProcessor:
519
 
520
  async def translate_text(self, text: str) -> str:
521
  """Translate recognized text to the target language."""
522
- if False:
523
  if not hasattr(self, "translation_tokenizer") or not hasattr(self, "translator"):
524
  logger.warning("Translation model is not loaded. Skipping translation.")
525
  return text
 
519
 
520
  async def translate_text(self, text: str) -> str:
521
  """Translate recognized text to the target language."""
522
+ if True:
523
  if not hasattr(self, "translation_tokenizer") or not hasattr(self, "translator"):
524
  logger.warning("Translation model is not loaded. Skipping translation.")
525
  return text