This release is a pre-release and may not be stable for production use.
ovos-ocp-files-plugin
This plugin lets OVOS Common Play (OCP) read local audio and video files. It reads file metadata, such as title, and reports the playback type so OCP can play the file.
It bundles a fork of audio-metadata, adds MP4 support, and publishes it to PyPI as an updated dependency. There is no active development in this repository beyond packaging.
Install
pip install ovos-ocp-files-plugin
Usage
OCP loads this plugin through its extractor entry point. It handles a stream URI in the form file//<path> or a local file path, and returns metadata such as title and playback type:
from ovos_ocp_files_plugin.plugin import OCPFilesMetadataExtractor
extractor = OCPFilesMetadataExtractor()
extractor.validate_uri("/home/user/music/song.mp3") # True
meta = extractor.extract_metadata("/home/user/music/song.mp3")
Related projects
- OpenVoiceOS/ovos-plugin-manager defines the
OCPStreamExtractorbase class this plugin implements. - OpenVoiceOS/ovos-ocp-audio-plugin is a sibling OCP stream extractor.
- thebigmunch/audio-metadata is the upstream metadata library this plugin packages and extends.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_ocp_files_plugin-0.13.2a3.tar.gz.
File metadata
- Download URL: ovos_ocp_files_plugin-0.13.2a3.tar.gz
- Upload date:
- Size: 54.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edcd0350dc807e3f9337f3813a6d831e4d4c48e93644a4b1192ca3457a8df46e
|
|
| MD5 |
9b8e08de84fa6c2ac945b52c05132ca8
|
|
| BLAKE2b-256 |
941115d94801e554cbfe803ccb3af60b8a921057759c4138f740b6814f138fea
|
File details
Details for the file ovos_ocp_files_plugin-0.13.2a3-py3-none-any.whl.
File metadata
- Download URL: ovos_ocp_files_plugin-0.13.2a3-py3-none-any.whl
- Upload date:
- Size: 54.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd95035774f909f68260e17c9feb2959ec4ff3b5103ce083d91a94f94929a8d
|
|
| MD5 |
1aa6c0e4621f76563ca3d22c411d5491
|
|
| BLAKE2b-256 |
68b9c5001788add39f6c72c015ee311d12d6246d31dbf55c2223f4897b7f43d5
|