|
@@ -91,7 +91,7 @@ class MyAudioMediaPort(pj.AudioMediaPort):
|
|
else:
|
|
else:
|
|
if asr_text and not play_complete:
|
|
if asr_text and not play_complete:
|
|
self.user_asr_texts.append(asr_text)
|
|
self.user_asr_texts.append(asr_text)
|
|
- if asr_text and play_complete or play_complete and self.user_asr_texts:
|
|
|
|
|
|
+ if (asr_text and play_complete) or (play_complete and self.user_asr_texts):
|
|
if asr_text: # 等价于 if asr_text is not None and asr_text != ""
|
|
if asr_text: # 等价于 if asr_text is not None and asr_text != ""
|
|
self.user_asr_texts.append(asr_text)
|
|
self.user_asr_texts.append(asr_text)
|
|
# self.user_asr_texts.append(asr_text)
|
|
# self.user_asr_texts.append(asr_text)
|