data.utils.read_json
data.utils.read_json(json_path)Convenience function to read a JSON file and parse it into an AudioMetadata object.
For better performance, use JSONMetadataDataset in easyaligner.data.dataset.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| json_path | str or Path | Path to the JSON file. | required |
Returns
| Name | Type | Description |
|---|---|---|
| AudioMetadata | Parsed AudioMetadata object. |