You could try running the model in the browser with Tensorflow.js. I recently tried this for something like that and found the overall workflow much easier. TFJS tooling is pretty good.
Before I had tried using custom setups with Janus in the loop and it was slow going. AioRTC flat out never worked for me.