Thanks @ibc , you are right, clock rate and bitrate are different. But I tried this morning to change bitrate for Opus in micproducer in mediasoup-demo, from
this._micProducer = yield this._sendTransport.produce({
track,
codecOptions: {
opusStereo : true,
opusDtx : true
}
});
to
this._micProducer = yield this._sendTransport.produce({
track,
codecOptions: {
opusStereo : false,
opusDtx : true,
opusFec : true,
opusPtime : '3',
opusMaxPlaybackRate : 16000
},
encodings: [{maxBitrate: 16000}]
});
then I found local audio stats still not changed, as:
id "RTCCodec_0_Outbound_111"
timestamp 1612110788046
type "codec"
payloadType 111
mimeType "audio/opus"
clockRate 48000
channels 2
sdpFmtpLine "stereo=1;usedtx=1"
I checked in chrome://webrtc-internals/, sdp is same as above.
And in AUDIO PRODUCER REMOTE STATS, bit rate is as same as before.
Did I do something wrong or Opus bitrate in Chrome (I am using Chrome 88) cannot be changed?