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.

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.3.0.tar.gz (8.4 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.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vban_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 8.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 7e92986bf0193240e756e015bac388c1a3dbc17871c463d151481034f1ba1414
MD5 b5e23b5b3dea88711bf0c4c9b1395c24
BLAKE2b-256 4de53efba85bbd12e6eea9044f329372ebd3f5b9928ed0ef8a04a8670e7ea132

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vban_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 988a451d9cba1a248d83170d98d6b68a53d606f0b48fb473d783a6011c3d68e3
MD5 9b71adbb0842d4361b96e56d5619231b
BLAKE2b-256 9a18e1cdfe8253bae3ce40b0092f9dab4851aac411efed75d549f855bc173a04

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