|
@@ -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 毫秒)
|