|
@@ -192,7 +192,7 @@ class MyCall(pj.Call):
|
|
|
self.wait_time = None
|
|
|
self.inputType = None #记录按键类型 1为长按键类型
|
|
|
self.digit = '' # 存储长按键内容
|
|
|
- self.action = None
|
|
|
+ self.action = {}
|
|
|
self.node_id= 'start'
|
|
|
|
|
|
self.cur_player_file = None #当前播放的文件
|
|
@@ -360,7 +360,7 @@ class MyCall(pj.Call):
|
|
|
|
|
|
class ToTextBotAgent:
|
|
|
def __init__(self, user_asr_text, call_agent):
|
|
|
- if not user_asr_text:
|
|
|
+ if not user_asr_text and call_agent.actiont.get("action_code") != "normal":
|
|
|
print("ASR文本为空,终止执行。")
|
|
|
return
|
|
|
self.call_agent = call_agent
|