mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-22 05:57:50 +00:00
fix
This commit is contained in:
parent
27b4964cb9
commit
b65fb56a6c
@ -192,8 +192,8 @@ class LollmsASR:
|
||||
self.app.success("asr Service is now available.")
|
||||
self.ready = True
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
except Exception as ex:
|
||||
trace_exception(ex)
|
||||
|
||||
retries += 1
|
||||
ASCIIColors.yellow("Waiting for asr...")
|
||||
|
@ -218,14 +218,17 @@ class LollmsXTTS(LollmsTTS):
|
||||
if response.status_code == 200:
|
||||
self.update_settings()
|
||||
print(f"voices_folder is {self.voices_folder}.")
|
||||
self.ready = True
|
||||
if self.voices_folder is not None:
|
||||
print("Generating sample audio.")
|
||||
voice_file = [v for v in self.voices_folder.iterdir() if v.suffix==".wav"]
|
||||
try:
|
||||
self.tts_audio("x t t s is ready",voice_file[0].stem)
|
||||
except Exception as ex:
|
||||
return True
|
||||
print("Service is available.")
|
||||
if self.app is not None:
|
||||
self.app.success("XTTS Service is now available.")
|
||||
self.ready = True
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user