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
Release files for ovos-ocp-pipeline-plugin 1.1.29a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_ocp_pipeline_plugin-1.1.29a1.tar.gz | 181.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_ocp_pipeline_plugin-1.1.29a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 439.5 kB
Release files / ovos_ocp_pipeline_plugin-1.1.29a1.tar.gz
| Download URL | ovos_ocp_pipeline_plugin-1.1.29a1.tar.gz |
|---|---|
| Size | 181.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdb257d412a0003c0b5ebd7d9f51495c2e488199c3a669c2aa8ad12abd5700b4
|
|
BLAKE2b-256 checksum How to use checksums |
56ab8789c24482e72127e3ab1cf6aff928bde3b36f4957dec297e50cd83ca744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_ocp_pipeline_plugin-1.1.29a1-py3-none-any.whl
| Download URL | ovos_ocp_pipeline_plugin-1.1.29a1-py3-none-any.whl |
|---|---|
| Size | 258.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c32af363ff6669b0e723711846405e56de27c2caec67f22e0cc135ec316516d
|
|
BLAKE2b-256 checksum How to use checksums |
bbe00675165cd7d2b32bff4a57c025f5f4c7063af19ab6c39d2d17906e0f74d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|