Explorar o código

讯飞asr测试,debug

Davidliu hai 1 mes
pai
achega
6a21b965c2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/core/voip/constant.py

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

@@ -21,7 +21,8 @@ def build_audio_format():
     fmt.id = pj.PJMEDIA_FORMAT_PCM
     fmt.channelCount = 1  # 通道数
     fmt.bitsPerSample = 16  # 每个采样的位数
-    fmt.clockRate = 8000  # 采样率
+    # fmt.clockRate = 8000  # 采样率
+    fmt.clockRate = 16000  # 采样率
     fmt.frameTimeUsec = 12500  # 每帧的时间(20 毫秒)
     # fmt.clockRate = 16000  # 采样率
     # fmt.frameTimeUsec = 20000  # 每帧的时间(20 毫秒)