Browse Source

Update response_type_detector: update limit for voice response

StrayWarrior 4 days ago
parent
commit
bd08afb094
1 changed files with 1 additions and 1 deletions
  1. 1 1
      response_type_detector.py

+ 1 - 1
response_type_detector.py

@@ -75,7 +75,7 @@ class ResponseTypeDetector:
     @staticmethod
     def if_message_suitable_for_voice(message):
         # 使用语音的文字不适合过长
-        if len(message) > 30:
+        if len(message) > 50:
             return False
         # 只有纯文字的消息适合使用语音
         if not ResponseTypeDetector.is_chinese_only(message):