root 1 сар өмнө
parent
commit
a14f96d87c

+ 1 - 1
ai-slibra-assistant/util/request_utils.py

@@ -103,7 +103,7 @@ def voice_service(content, local=False, silence_duration="125"):
         try:
             url = r.hget(name, key)
             #url=''
-            if url:
+            if url and os.path.exists(url):
                 logger.info(f"获取voice url成功:{content}")
                 return url
             else: