shanghui 3 månader sedan
förälder
incheckning
73f95379d7
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/core/voip/bot.py

+ 3 - 3
src/core/voip/bot.py

@@ -537,9 +537,9 @@ class BotAgent:
             aud_dev_mgr.setNullDev()  # 使用虚拟音频设备(如果没有实际设备)
             # Set up media configuration, particularly jitter buffer
             media_cfg = pj.MediaConfig()
-            media_cfg.jbMinPre = 8  # Minimum pre-fetch frames
-            media_cfg.jbMaxPre = 32  # Maximum pre-fetch frames
-            media_cfg.noVad = False  # Disable Voice Activity Detection if needed
+            media_cfg.jbMinPre = 4  # Minimum pre-fetch frames
+            media_cfg.jbMaxPre = 16  # Maximum pre-fetch frames
+            media_cfg.noVad = True  # Disable Voice Activity Detection if needed
             self.ep.medConfig = media_cfg  # Apply media config to endpoint
 
             # Create SIP transport. Error handling sample is shown