The JSON and CSV export logic in analyze_audio_directory() currently lives inside audio_analyzer.py. In the future, we want to support exporting detection results from the client side (e.g. allowing users to download data as JSON or CSV). Moving this functionality into a shared utility module (e.g. utils/exporter.py) will make it easier to reuse the export logic across the backend, including in API endpoints triggered by frontend requests.