Skip to main content

A command-line interface for Voicemeeter leveraging VBAN.

Project description

vban-cli

uv Ruff


Install

With uv

uv tool install vban-cli

With pipx

pipx install vban-cli

The CLI should now be discoverable as vban-cli


Configuration

Flags

vban-cli --host=localhost --port=6980 --streamname=Command1

Environment Variables

example .envrc:

#!/usr/bin/env bash

export VBAN_CLI_HOST="localhost"
export VBAN_CLI_PORT=6980
export VBAN_CLI_STREAMNAME=Command1

Use

Usage: vban-cli COMMAND

╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────╮
│ bus          Control the bus parameters.                                                         │
│ strip        Control the strip parameters.                                                       │
│ --help (-h)  Display this message and exit.                                                      │
│ --version    Display application version.                                                        │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────────────────────────╮
│ --kind        Kind of Voicemeeter [env var: VBAN_CLI_KIND] [default: potato]                     │
│ --host        VBAN host [env var: VBAN_CLI_HOST] [default: localhost]                            │
│ --port        VBAN port [env var: VBAN_CLI_PORT] [default: 6980]                                 │
│ --streamname  VBAN stream name [env var: VBAN_CLI_STREAMNAME] [default: Command1]                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

For every command and subcommand there exists a --help flag for further usage information.


Implementation Notes

  1. The VBAN TEXT subprotocol defines two packet structures ident:0 and ident:1. Neither of them contain the data for Bus EQ parameters.
  2. Packet structure with ident:1 is emitted by the VBAN server only on pdirty events. This means we do not receive the initial state of those parameters on initial subscription. Therefore any commands which are intended to fetch the value of parameters defined in packet ident:1 will not work in this CLI.
  3. Packet structure with ident:1 defines parameteric EQ data only for the first channel.

Further Notes

I've made the effort to set up the basic skeletal structure of the CLI as well as demonstrate how to combine subcommand groups with subcommand groups so more can be implemented, it just needs doing. There may be restrictions on some things however, for example, retrieving values is only possible for parameters defined in the protocol. Setting parameters can be done for anything possible by a string request.

Shell completion scripts are available (for zsh, bash and fish) but I haven't tested them

Some of the help output needs improving for commands that branch off positional arguments.

If there's something missing that you would like to see added the best bet is to submit a PR. You may raise an issue and if it's quick and simple to do I may (or may not) do it.


License

vban-cli is distributed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vban_cli-0.4.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vban_cli-0.4.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file vban_cli-0.4.1.tar.gz.

File metadata

  • Download URL: vban_cli-0.4.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vban_cli-0.4.1.tar.gz
Algorithm Hash digest
SHA256 fd608178fde5564d3ce5286dba16b551fea8c8c63a8353b55893e1bf413902c6
MD5 51519da8b5b0219d419c1d31f4637843
BLAKE2b-256 82854c6e3a66fdb92a9fea5363bec86cb189610812f9af74f131187cf1b57767

See more details on using hashes here.

File details

Details for the file vban_cli-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: vban_cli-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vban_cli-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3413b9fd8d8dd746ae4bf8c4973cba7ad4ec1c96d5217b8af86e15667b96ceb8
MD5 55372345f0f3230540a13930c429e088
BLAKE2b-256 1fc1d20e5cd1539618b7ea7fb0e451a37f7a82219f2ad01a47fe51abcb67757c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page