Pass request context to extract_audio function and fix logging