Skip to content

Commit

Permalink
Merge pull request #954 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
fix: 修复音频播放间隔的随机数生成后 没有int化的bug
  • Loading branch information
Ikaros-521 authored Jul 31, 2024
2 parents 0b839f9 + d33f6ba commit 367aa25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ async def only_play_audio(self):

interval_num_min = float(self.config.get("play_audio", "interval_num_min"))
interval_num_max = float(self.config.get("play_audio", "interval_num_max"))
interval_num = self.common.get_random_value(interval_num_min, interval_num_max)
interval_num = int(self.common.get_random_value(interval_num_min, interval_num_max))

for i in range(interval_num):
# 不仅仅是说话间隔,还是等待文本捕获刷新数据
Expand Down

0 comments on commit 367aa25

Please sign in to comment.