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.4a1

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.4a1
File Size Uploaded
ovos_media_plugin_cli-0.0.4a1.tar.gz 13.1 kB Details

Built distribution (wheel)

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

Total release size: 24.9 kB

Release files / ovos_media_plugin_cli-0.0.4a1.tar.gz

Download URL ovos_media_plugin_cli-0.0.4a1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a10d96e2f92058c0d98c0e03848ae96ae3fbeb5fd7cfdf62aa3bc2d56ca04f30
BLAKE2b-256 checksum
How to use checksums
23a86538e3ab637e78037664954d071988745b38c4409167694e22ee0e879d28
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.4a1-py3-none-any.whl

Download URL ovos_media_plugin_cli-0.0.4a1-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97bcb7999bd0247c6aeffec190dcde2dab91444f7c7258ca2139694d5ff0071b
BLAKE2b-256 checksum
How to use checksums
29b0e8640762105028fc0b0423f23abb3118769787ba20e3b15b4366c128e3ba
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