mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
upgraded functions in tts and stt
This commit is contained in:
parent
513485df49
commit
0d79c67db4
@ -527,6 +527,6 @@ def stop_recording(data:Identification):
|
||||
# preprocessed_text= add_period(ai_text)
|
||||
# voice_file = [v for v in voices_folder.iterdir() if v.stem==voice and v.suffix==".wav"]
|
||||
|
||||
# lollmsElfServer.tts.tts_to_audio(preprocessed_text, voice_file[0].name, language=language)
|
||||
# lollmsElfServer.tts.tts_audio(preprocessed_text, voice_file[0].name, language=language)
|
||||
return text
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 2b4f4cf7f6bcf6e9b859d7b097d1595c921aaedb
|
||||
Subproject commit 14ff02b6d2d6737f69bb70e46361cae9cb0c358f
|
@ -1255,7 +1255,7 @@ class LOLLMSWebUI(LOLLMSElfServer):
|
||||
fn = self.personality.name.lower().replace(' ',"_").replace('.','')
|
||||
fn = f"{fn}_{message_id}.wav"
|
||||
url = f"audio/{fn}"
|
||||
self.xtts.tts_to_file(client.generated_text, Path(self.personality.audio_samples[0]).name, f"{fn}", language=language)
|
||||
self.xtts.tts_file(client.generated_text, Path(self.personality.audio_samples[0]).name, f"{fn}", language=language)
|
||||
fl = f"\n".join([
|
||||
f"<audio controls>",
|
||||
f' <source src="{url}" type="audio/wav">',
|
||||
|
Loading…
Reference in New Issue
Block a user