This release is a pre-release and may not be stable for production use.
ovos-media-plugin-cli
Generic command-line playback plugin for
ovos-media, and for the legacy
ovos-audio service.
The plugin plays a track by running a command-line media player as a subprocess. Point it at any player command, or let it auto-detect the best available one for your platform.
- Explicit command: set
command(for example"mpv --no-terminal","cvlc --play-and-exit","ffplay -nodisp -autoexit"). The plugin appends the track URI as the final argument. - Auto-detect (default): when you do not set a command, the plugin picks
the best available player for your platform through
shutil.which. It preferssox(play), then triesmpg123,paplay, oraplayon Linux, andafplayon macOS.
Pause and resume use process signals (SIGSTOP/SIGCONT). Stop terminates
the child process.
Install
pip install ovos-media-plugin-cli
Install sox too. It gives the widest format and URL coverage when the
plugin auto-detects a player.
Configuration
New ovos-media:
{
"media": {
"preferred_audio_services": ["mplayer", "vlc", "cli"],
"audio_players": {
"cli": {
"module": "ovos-media-audio-plugin-cli",
"aliases": ["Command line", "CLI Player"],
"active": true,
"command": "mpv --no-terminal"
}
}
}
}
Omit command to auto-detect. Legacy ovos-audio:
{
"Audio": {
"backends": {
"cli": { "type": "cli", "active": true, "command": "mpv --no-terminal" }
}
}
}
Keys
| Key | Type | Default | Description |
|---|---|---|---|
command (alias play_cmd) |
str | auto-detect | CLI player command. The plugin appends the URI as the last argument. |
active |
bool | true |
Enable or disable this backend instance. |
Entry points
| Group | Name | Object |
|---|---|---|
opm.media.audio |
ovos-media-audio-plugin-cli |
ovos_media_plugin_cli:CLIAudioService |
mycroft.plugin.audioservice |
ovos_cli |
ovos_media_plugin_cli.audio |
Related projects
- ovos-media: the media service this plugin's
opm.media.audioentry point serves. - ovos-plugin-manager: defines the
MediaBackend/AudioPlayerBackendand legacyAudioBackendbase classes this plugin implements. - ovos-media-plugin-mpv, ovos-media-plugin-vlc, ovos-media-plugin-mplayer, and ovos-media-plugin-ffplay: sibling audio-playback plugins for one specific player, instead of the generic CLI command this plugin wraps.
License
Apache-2.0, see LICENSE.
Metadata
Release files for ovos-media-plugin-cli 0.0.6a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_media_plugin_cli-0.0.6a1.tar.gz | 13.7 kB | Without provenance | Details for ovos_media_plugin_cli-0.0.6a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_media_plugin_cli-0.0.6a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_media_plugin_cli-0.0.6a1-py3-none-any.whl |
Total release size: 26.2 kB
Release files / ovos_media_plugin_cli-0.0.6a1.tar.gz
| Download URL | ovos_media_plugin_cli-0.0.6a1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe32f456fdd260944327684ed719202a297f21c0b0a50ece241b2602a69b4073
|
|
BLAKE2b-256 checksum How to use checksums |
c73b6519ad2989873ff81cdb5cd9622c6f7b81815e2aea69cf52203e059f2a2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_media_plugin_cli-0.0.6a1-py3-none-any.whl
| Download URL | ovos_media_plugin_cli-0.0.6a1-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5a4edb1a39e78e6c0c68352625f3fa0e3afd3df752d8ea4e654cc5061390d4c
|
|
BLAKE2b-256 checksum How to use checksums |
f52e4d66d23c3fdb4026fc740189c611d7a192eaf8c21a88e2d6736a70dc87a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for ovos-media-plugin-cli 0.0.6a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.