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

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.6a1
File Size Uploaded
ovos_media_plugin_cli-0.0.6a1.tar.gz 13.7 kB Details

Built distribution (wheel)

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

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
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