Update fay_core.py 解决面板播放没有停止录音的bug

This commit is contained in:
andrew lee 2023-05-22 02:31:14 +08:00 committed by GitHub
parent 023df4deb1
commit f76f92f187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -542,10 +542,11 @@ class FeiFei:
wsa_server.get_web_instance().add_cmd({"panelMsg": self.a_msg})
time.sleep(audio_length + 0.5)
wsa_server.get_web_instance().add_cmd({"panelMsg": ""})
if config_util.config["interact"]["playSound"]:
util.log(1, '结束播放!')
time.sleep(audio_length + 0.5)
self.speaking = False
except Exception as e:
print(e)