Audio Metadata
The audio metadata extractor enriches document metadata with specific information about input audio documents, such as codec, bitrate, sample rate, duration, title, or album art information. Those metadata can then be later used by subsequent middlewares in the pipeline, or stored in a database.
🎧 Extracting Metadata
To use this middleware, you import it in your CDK stack and instantiate it as part of a pipeline.
📄 Output
The audio metadata extraction middleware does not modify or alter source audio documents in any way. It instead enriches the metadata of the documents with captured information. Below is an example of metadata captured using this middleware.
💁 Click to expand example
🏗️ Architecture
This middleware runs within a Lambda compute based on the ARM64 architecture, and packages the music-metadata
library to extract the metadata of audio documents.
🏷️ Properties
Supported Inputs
Mime Type | Description |
---|---|
audio/mpeg | MPEG audio documents. |
audio/mp3 | MP3 audio documents. |
audio/mp4 | MP4 audio documents. |
audio/wav | WAV audio documents. |
audio/x-wav | WAV audio documents. |
audio/x-m4a | M4A audio documents. |
audio/ogg | OGG audio documents. |
audio/x-flac | FLAC audio documents. |
audio/flac | FLAC audio documents. |
audio/x-aiff | AIFF audio documents. |
audio/aiff | AIFF audio documents. |
audio/x-ms-wma | WMA audio documents. |
audio/x-matroska | MKV audio documents. |
audio/webm | WebM audio documents. |
audio/aac | AAC audio documents. |
Supported Outputs
This middleware supports as outputs the same types as the supported inputs.
Supported Compute Types
Type | Description |
---|---|
CPU | This middleware only supports CPU compute. |
📖 Examples
- Metadata Extraction Pipeline - Builds a simple metadata extraction pipeline.