Audio chains are typically block-oriented, and often aren't designed to
be adjustable in terms of frame size. However, the internal processing
frame size is not the same as the packetization interval used for audio
packets in RTP, which is typically (but not always) a multiple of 10ms.
(20ms is the most common).
--
Randell Jesup
randel...@jesup.org
You can adapt by either modifying the code for 48ms (or some divisor of
it, like 12ms), or by re-buffering the data into 10ms chunks to feed to
the AEC, and back to 48ms chunks afterwards (would work but would add a
small amount of delay).
> I looked into the WebRTC code working with frames to cancel echo. The
> length of 10ms (= 80 samples for 8kHz rate) seems to be set through
> several constants in the code. So I hope I'd be able to carefully
> adapt the code to my needs. Is it possible?
Maybe (I'd guess yes, but it might be a fair bit of work depending on
how completely things are parameterized). You'll have to see, and I'm
afraid the Google people won't be able to help you from what they've
said in the past.
--
Randell Jesup
randel...@jesup.org