Skip to main content

A command-line interface for Voicemeeter leveraging VBAN.

Project description

vban-cli

uv Ruff


This CLI is still in an early stage of development with many more things that could be implemented. However, the commands that are implemented should be working without issues.

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

Strip Command

Usage: vban-cli strip <index> COMMAND [ARGS]

examples:

vban-cli strip 0 mute true

vban-cli strip 1 A1 true

vban-cli strip 2 gain -18.7

see vban-cli strip --help for more info.

Strip EQ

Usage: vban-cli strip <index> eq COMMAND [OPTIONS]

examples:

vban-cli strip 0 eq on true

see vban-cli strip eq --help for more info.

Strip EQ Cell Command

Usage: vban-cli strip <index> eq cell <band> COMMAND [ARGS]

examples:

vban-cli strip 0 eq cell 0 on false

see vban-cli strip eq cell --help for more info.

Bus Command

Usage: vban-cli bus <index> COMMAND [ARGS]

examples:

vban-cli bus 0 mode tvmix

vban-cli bus 1 mute true

see vban-cli bus --help for more info.

Command Command

Usage: vban-cli command COMMAND

examples:

vban-cli command show

vban-cli command restart

see vban-cli command --help for more info.

Recorder Command

Usage: vban-cli recorder COMMAND

examples:

vban-cli recorder play

vban-cli recorder rew

vban-cli recorder replay

see vban-cli recorder --help for more info.

Sendtext Command

Usage: vban-cli sendtext TEXT

To Voicemeeter

examples:

vban-cli sendtext 'Strip[0].Mute=1;Bus[0].Mono=2'

To Matrix

vban-cli sendtext 'Command.Version = ?'

vban-cli sendtext 'Point(ASIO128.IN[1..4],ASIO128.OUT[1]).dBGain = -3.0'

see vban-cli sendtext --help for more info.


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 current 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 they haven't been thoroughly tested.

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.7.0.tar.gz (10.7 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.7.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vban_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 10.7 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.7.0.tar.gz
Algorithm Hash digest
SHA256 7c80f683a81f40d8902c8056780f1d56f62803f74baec5f0c0e94be55bc50e46
MD5 c5a2542499b5d38e37add5f6e9eb8053
BLAKE2b-256 ef8601599e64ec1aaf31884248744f3a5cbb7123a97de389c8cf9bd39b69ec95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vban_cli-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9041801cb201d9ed07ab587a39031924217dbd39c2471b4d43f63f5c7e3ddb
MD5 3def02e298c8a73de70ebafc55605a6b
BLAKE2b-256 d4c6bdbfbf49ee808b2f655231e924b0a15e62fd2e03fc68ac23a9302ab054fb

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