ISCC - Audio Processing#
Audio handling module.
audio_thumbnail(fp)
#
Create a thumbnail from embedded cover art.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to audio file. |
required |
Returns:
Type | Description |
---|---|
Thumbnail image as PIL Image object |
audio_meta_extract(fp)
#
Extract metadata from audio file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to audio file. |
required |
Returns:
Type | Description |
---|---|
Metadata mapped to IsccMeta schema |
audio_meta_embed(fp, meta)
#
Embed metadata into a copy of the audio file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to source audio file |
required | |
meta
|
IsccMeta
|
Metadata to embed into audio file |
required |
Returns:
Type | Description |
---|---|
Filepath to new audio file with updated metadata |
audio_features_extract(fp)
#
Exctracts chromprint fingerprint.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath |
required |
Returns:
Type | Description |
---|---|
A dict with |