Skip to content

Commit

Permalink
Update fay_core.py 解决面板播放没有停止录音的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsty authored May 21, 2023
1 parent 023df4d commit f76f92f
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 @@ -542,10 +542,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 f76f92f

Please sign in to comment.