John Langley commited on
Commit
cc0e060
1 Parent(s): a1b2bae

trying things with cpu

Browse files
Files changed (1) hide show
  1. utils.py +1 -0
utils.py CHANGED
@@ -347,6 +347,7 @@ def generate_speech_for_sentence(history, chatbot_voice, sentence, xtts_model, x
347
  if any(c.isalnum() for c in sentence):
348
  if language=="autodetect":
349
  #on first call autodetect, nexts sentence calls will use same language
 
350
  language = detect_language(sentence, xtts_supported_languages)
351
 
352
  #exists at least 1 alphanumeric (utf-8)
 
347
  if any(c.isalnum() for c in sentence):
348
  if language=="autodetect":
349
  #on first call autodetect, nexts sentence calls will use same language
350
+ print("THE SENTENCE IS:", sentence)
351
  language = detect_language(sentence, xtts_supported_languages)
352
 
353
  #exists at least 1 alphanumeric (utf-8)