class AudioAnalyzer

Ruby on Rails 7.0.10

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

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.

Inherits from

ActiveStorage::Analyzer

Methods (defined here)

Private methods

(7) Implementation detail — not part of the public API.

Methods (inherited)

From ActiveStorage::Analyzer (4)
From Object (16)
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)

Type at least 2 characters to search.

↑↓ navigate · open · esc close