The extra blank audio at the end of your recordings occurs because the agent and egress participants remain in the room for a short period after the human participant leaves. To resolve this, you can:
• Delete the room when the human participant leaves. This will cause the egress participant to leave and stop the recording.
• Manually stop egress using the API.
Deleting the room when the call ends is the recommended solution to address this issue effectively.