Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: Analyzer

Active Storage Audio Analyzer

Extracts duration (seconds), bit_rate (bits/s), sample_rate (hertz) and tags (internal metadata) from an audio blob.

Example:

ActiveStorage::Analyzer::AudioAnalyzer.new(blob).metadata
# => { duration: 5.0, bit_rate: 320340, sample_rate: 44100, tags: { encoder: "Lavc57.64", ... } }

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

Show files where this class is defined (1 file)
Register or log in to add new notes.