webtrc能使用16k的采样率吗?
来源:6-1 【基础铺垫,学前有概念】WebRTC音视频数据采集

caiyucy
2020-04-01
老师,有个项目需要采集16k的音频,在constraints 里audio添加了sampleRate:16000,没有生效。网上查说是固定48000了,请问有什么解决办法吗
var constraints = {
75 video : {
76 width:640,
77 height:480,
78 frameRate:30,
79 faceingMode: 'enviroment',
80 deviceId : deviceId ? {exact:deviceId} : undefined
81 },
82 audio : {
83 noiseSuppression:true,
84 echoCancellation:true,
85 sampleRate: 16000
86 }
87 }
写回答
1回答
-
李超
2020-04-01
对webrtc 没办法,它就是48000,你可以考虑是否可以进行重采样
00
相似问题
时钟采样率
回答 1
如何使用JS限制webRTC推流的码率
回答 1