My project base on NCS V2.2.0.BIS mode,gateway

My "AUDIO FRAME DURATION" is 10ms.But my audio source is not i2s or usb.
My audio come from uart,1M bit/s.It will take 2-3ms.

and Lc3 encode take 5-6 ms.then time is not enough.

Can I modify this:AUDIO_FRAME_DURATION_US(I tried ,but failed),or an I reduce LC3 encode time.
any advice will be helpful.