This release is a pre-release and may not be stable for production use.
OCP Pipeline
The OCP (Open Common Play) pipeline plugin turns media utterances into playback actions in OVOS. Utterances such as "play metallica", "put on some movie", "pause", or "next" pass through this plugin as an intent pipeline stage. On a match, the plugin searches registered media skills over the message bus and drives playback through the OCP API.
The plugin exposes two entry points under the opm.pipeline group:
ovos-ocp-pipeline-plugin(OCPPipelineMatcher), the main pipeline. It matchesplay,open,media_stop,next,prev,pause,resume,save_game, andload_gameintents at high, medium, or low confidence.ovos-ocp-pipeline-plugin-legacy(MycroftCPSLegacyPipeline), a bridge for older Mycroft CommonPlay skills, using theplay:query/play:query.response/play:starthandshake.
OCPPipelineMatcher also classifies media type, such as music, movie, or podcast. It extracts named entities with ahocorasick-ner, using per-language vocabulary files and optional user-supplied entity CSVs (the entity_csvs config option). It tracks player state per session through an OCPPlayerProxy, kept in sync with ovos.common_play.status and track.state bus events.
Architecture
Install
pip install ovos-ocp-pipeline-plugin
Usage
OVOS core loads this plugin automatically once installed, through the opm.pipeline entry-point group. Enable it in mycroft.conf under the intents section:
{
"intents": {
"ovos-ocp-pipeline-plugin": {
"entity_csvs": []
}
}
}
The plugin reads the pipeline's intents config block, then falls back to a legacy OCP config block for backward compatibility.
Related projects
- OpenVoiceOS/ovos-plugin-manager defines the
ConfidenceMatcherPipelinebase class and theopm.pipelineentry-point group this plugin implements. - OpenVoiceOS/ovos-workshop provides
OVOSAbstractApplication, the bus-app base class this plugin also subclasses. - OpenVoiceOS/ovos-bus-client provides the OCP message-bus API (
OCPInterface) used to search and control playback.
License
Apache-2.0
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_pipeline_plugin-1.1.28a2.tar.gz.
File metadata
- Download URL: ovos_ocp_pipeline_plugin-1.1.28a2.tar.gz
- Upload date:
- Size: 180.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7698f938afef11f64b1497d767e97def36b06e52ccf6b99af62ed3b9e9544c0e
|
|
| MD5 |
00843cb41bcd3467cc582376769e6fc7
|
|
| BLAKE2b-256 |
85a02799d83a09830d656fbc5fca1073ddd64765399fc885a51057f4ff2afdbe
|
File details
Details for the file ovos_ocp_pipeline_plugin-1.1.28a2-py3-none-any.whl.
File metadata
- Download URL: ovos_ocp_pipeline_plugin-1.1.28a2-py3-none-any.whl
- Upload date:
- Size: 258.3 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 |
e79c658f0584e03e6b25d94d13719955afc83b554d76a5dde9d14e9b156d392b
|
|
| MD5 |
7ebbbf7ef1899580f09dc65b764b962a
|
|
| BLAKE2b-256 |
f0b5bc64537b879dc2f9279ee0c2205f0ef91acd80a097158a3cf79b6c1ff840
|