class ActiveStorage::Analyzer::AudioAnalyzer

Extracts duration (seconds) and bit_rate (bits/s) from an audio blob.

Example:

ActiveStorage::Analyzer::AudioAnalyzer.new(blob).metadata
# => { duration: 5.0, bit_rate: 320340 }

This analyzer requires the FFmpeg system library, which is not provided by Rails.