"Frame size is 20 ms. For efficency, set it to 10 ms."

Options
Hi! I'm getting the following Warning when using Photon Voice: "WebRTCAudioProcessor: Frame size is 20 ms. For efficency, set it to 10 ms." Setting it to 10ms makes the warning disappear, but is there a tradeoff involved here (if "this.inFrameSize != this.processFrameSize", to quote the code)? What's the background on this, am I setting up the stream to need more bandwidth? (I'm targeting mobile.)

Thanks!

Comments

  • vadim
    Options
    Hi,

    You can ignore this warning. Performance impact is negligible in fact. Bandwidth concerns are more important in this case.
    In theory, it's possible to adjust audio pipeline so that microphone produces 10 ms packets which processed by WebRTCAudioProcessor and repacked to 20 ms packets before encoding. In practice, the api is not flexible enough to do so.
  • Philipp
    Options
    Thanks!!