This commit is contained in:
Saifeddine ALOUI 2024-05-24 23:51:17 +02:00
parent dd8baaeb9e
commit c0966d0f89
2 changed files with 10 additions and 1 deletions

View File

@ -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