Browse Source

讯飞实时听写接口,debug

Davidliu 4 weeks ago
parent
commit
ea235e3bf2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core/voip/constant.py

+ 2 - 2
src/core/voip/constant.py

@@ -11,7 +11,7 @@ def build_ep_config():
     ep_cfg.uaConfig.mainThreadOnly = False
     ep_cfg.uaConfig.maxCalls = 12
     ep_cfg.uaConfig.maxAccounts = 12
-    ep_cfg.medConfig.noVad = True
+    ep_cfg.medConfig.noVad = False
     ep_cfg.logConfig.level = 3
     ep_cfg.logConfig.consoleLevel = 3
     return ep_cfg
@@ -20,7 +20,7 @@ def build_media_config():
     media_cfg = pj.MediaConfig()
     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
+    media_cfg.noVad = False  # Disable Voice Activity Detection if needed
     media_cfg.clockRate = 16000
     media_cfg.channelCount = 1
     media_cfg.audioFramePtime = 40