mirror of
https://github.com/onyx-and-iris/vmr-http.git
synced 2026-04-06 09:59:11 +00:00
74 lines
1.4 KiB
Markdown
74 lines
1.4 KiB
Markdown
# Voicemeeter HTTP
|
|
|
|
[](https://github.com/astral-sh/uv)
|
|
[](https://github.com/astral-sh/ruff)
|
|
|
|
---
|
|
|
|
## Install
|
|
|
|
```console
|
|
pip install vmr-http
|
|
```
|
|
|
|
## Run
|
|
|
|
```console
|
|
uvicorn vmr_http.app:app
|
|
```
|
|
|
|
## Use
|
|
|
|
*Set multiple Strip 0 parameters at once*
|
|
|
|
```console
|
|
curl -X 'PATCH' \
|
|
'http://127.0.0.1:8000/strip/0' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"gain": -38.7,
|
|
"mute": true,
|
|
"mono": true,
|
|
"A1": true,
|
|
"A2": false,
|
|
"A5": true,
|
|
"B1": true,
|
|
"B3": true
|
|
}'
|
|
```
|
|
|
|
*Set Strip 1 mute*
|
|
|
|
```console
|
|
curl -X 'PATCH' \
|
|
'http://127.0.0.1:8000/strip/1' \
|
|
-H 'accept: application/json' \
|
|
-H 'Content-Type: application/json' \
|
|
-d '{
|
|
"mute": true,
|
|
}'
|
|
```
|
|
|
|
*Get Bus 3 gain*
|
|
|
|
```console
|
|
curl -X 'GET' \
|
|
'http://127.0.0.1:8000/bus/3/gain' \
|
|
-H 'accept: application/json'
|
|
```
|
|
|
|
*Get Bus 4 Mode*
|
|
|
|
```console
|
|
curl -X 'GET' \
|
|
'http://127.0.0.1:8000/bus/4/mode' \
|
|
-H 'accept: application/json'
|
|
```
|
|
|
|
## Documentation
|
|
|
|
FastAPI [generates automatic docs][auto-docs], visit the link in the startup message when you launch the server.
|
|
|
|
[auto-docs]: https://fastapi.tiangolo.com/features/#automatic-docs
|