710b60bb16
This commit extracts the logic for mapping audio analysis results into the `RecordingMeta` fields into a new, pure function `analysis_to_meta_fields`. This improves testability by separating the core mapping logic from logging and other side effects. The previous implementation directly handled logging and conditional logic within the `run` function. The new function encapsulates these mapping rules, including handling finite values, silent audio, and error propagation. The caller, `run`, is now responsible for logging any analysis failures before calling the helper. Unit tests have been added to verify the behavior of `analysis_to_meta_fields` in various scenarios.