Skip to content

Commit

Permalink
Merge pull request xszyou#36 from andrewsty/main
Browse files Browse the repository at this point in the history
Update fay_core.py 解决面板播放没有停止录音的bug
  • Loading branch information
xszyou authored May 24, 2023
2 parents 3373a9f + ba9a1f6 commit 65884af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/fay_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,11 @@ def __send_audio(self, file_url, say_type):


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)
Expand Down

0 comments on commit 65884af

Please sign in to comment.