|
|
@@ -424,7 +424,7 @@ Output ONLY the greeting line.
|
|
|
f"用户输入={user_text[:100]}... (前100字符), "
|
|
|
f"堆栈跟踪:\n{traceback.format_exc()}"
|
|
|
)
|
|
|
- yield ("I'm sorry, I'm having trouble understanding. Could you please repeat that?", "neutral")
|
|
|
+ yield ("", "neutral")
|
|
|
|
|
|
def _is_complete_sentence(self, text: str) -> bool:
|
|
|
"""检测是否完整句子"""
|
|
|
@@ -535,7 +535,7 @@ Output ONLY the greeting line.
|
|
|
f"用户输入={user_text[:100]}... (前100字符), "
|
|
|
f"堆栈跟踪:\n{traceback.format_exc()}"
|
|
|
)
|
|
|
- return ("I'm sorry, I'm having trouble understanding. Could you please repeat that?", "neutral")
|
|
|
+ return ("", "neutral")
|
|
|
|
|
|
async def text_to_speech_stream(
|
|
|
self, text: str, emotion: EmotionType = "neutral"
|