Merge pull request #36 from andrewsty/main

Update fay_core.py 解决面板播放没有停止录音的bug
This commit is contained in:
guo zebin 2023-05-24 13:46:53 +08:00 committed by GitHub
commit 65884afee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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