|
@@ -56,7 +56,7 @@ class MyAudioMediaPort(pj.AudioMediaPort):
|
|
|
|
|
|
self.user_asr_texts = []
|
|
|
self.cur_player_file = None
|
|
|
- self.wait_time = 0
|
|
|
+ self.wait_time = None
|
|
|
|
|
|
self.play_start_time = None # 记录播放开始时间
|
|
|
self.play_complete_flag = False # 播放完成标志
|
|
@@ -84,7 +84,7 @@ class MyAudioMediaPort(pj.AudioMediaPort):
|
|
|
|
|
|
#超时处理
|
|
|
current_time = time.time()
|
|
|
- if play_complete and not asr_text:
|
|
|
+ if self.wait_time and self.wait_time != "0" and play_complete and not asr_text:
|
|
|
print('ssdsdsd',play_complete,asr_text)
|
|
|
self.wait_time_check(current_time)
|
|
|
|