ISCC - Audio Processing#
Audio handling module.
audio_thumbnail(fp)
#
Create a thumbnail from embedded cover art.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath to audio file. |
required |
Returns:
Type | Description |
---|---|
Image.Image|None
|
Thumbnail image as PIL Image object |
audio_meta_extract(fp)
#
Extract metadata from audio file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath to audio file. |
required |
Returns:
Type | Description |
---|---|
dict
|
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 |
str
|
Filepath to source audio file |
required |
meta |
IsccMeta
|
Metadata to embed into audio file |
required |
Returns:
Type | Description |
---|---|
str
|
Filepath to new audio file with updated metadata |
audio_features_extract(fp)
#
Exctracts chromprint fingerprint.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp |
str
|
Filepath |
required |
Returns:
Type | Description |
---|---|
dict
|
A dict with |