Skip to main content
Pre-release

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 prefers sox (play), then tries mpg123, paplay, or aplay on Linux, and afplay on 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

License

Apache-2.0, see LICENSE.

Metadata

Release files for ovos-media-plugin-cli 0.0.5a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-media-plugin-cli 0.0.5a1
File Size Uploaded
ovos_media_plugin_cli-0.0.5a1.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovos-media-plugin-cli 0.0.5a1
File Interpreter ABI Platform
ovos_media_plugin_cli-0.0.5a1-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / ovos_media_plugin_cli-0.0.5a1.tar.gz

Download URL ovos_media_plugin_cli-0.0.5a1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1cecaae78f82dca94118ce5c0bc9f31da04e595bb89806b7a4d23027c45a7615
BLAKE2b-256 checksum
How to use checksums
b87c93bed695df92c2bc48654120833cef138723a285d58622a51d0645801e56
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.5a1-py3-none-any.whl

Download URL ovos_media_plugin_cli-0.0.5a1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be76a38d64e1424fae31e4e3b5fce85e5452d653bec96cb966de221fe7d94588
BLAKE2b-256 checksum
How to use checksums
e2de064f8a081727309d3fa6a59b1a17c5df8d5a947db0c3457440d9bf571e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page