DeepAR audio/sound issue while switching the front ans rear camera video recording

I have been working on the iOS SDK and based on that the SDK works well into the iPhone but due to the SDK the video is lagging and the sound is playing earlier before the video when I return from the back / rear camera to the front camera in the video recording with the DeepAR filters, I need the solution for the same as there are no errors or crashes or warnings into the console logs.