mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-21 01:31:20 +00:00
sync
This commit is contained in:
parent
dd8baaeb9e
commit
c0966d0f89
@ -468,6 +468,15 @@ def start_recording(data:Identification):
|
||||
if lollmsElfServer.config.host!="localhost" and lollmsElfServer.config.host!="127.0.0.1":
|
||||
return {"status":False,"error":"Start recording is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
lollmsElfServer.info("Starting audio capture")
|
||||
if not lollmsElfServer.tts or not lollmsElfServer.stt:
|
||||
lollmsElfServer.InfoMessage("TTS or STT are not configured.\nPlease go to settings and configure them first")
|
||||
return {"status":False,"error":"TTS or STT not configured"}
|
||||
|
||||
if not lollmsElfServer.tts.ready or not lollmsElfServer.stt.ready:
|
||||
lollmsElfServer.InfoMessage("TTS is not ready yet.\nPlease wait")
|
||||
return {"status":False,"error":"TTS not ready"}
|
||||
|
||||
lollmsElfServer.info("Starting audio capture")
|
||||
try:
|
||||
from lollms.media import RTCom
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 3b975b2421a4e87cfb20ed2c4115908b2d027f7e
|
||||
Subproject commit 558da00d55d80bd681098596330d05c7b853f4af
|
Loading…
x
Reference in New Issue
Block a user