Compare commits

..

2 Commits
v0.7.1 ... main

Author SHA1 Message Date
fb1c48c862 switch to sync endpoints, there isn't a lot of value in keeping them async.
patch bump
2026-04-06 13:54:51 +01:00
e849d7739b typo 2026-04-05 23:35:53 +01:00
11 changed files with 53 additions and 55 deletions

View File

@ -140,7 +140,7 @@ curl -X 'GET' \
-H 'accept: application/json' -H 'accept: application/json'
``` ```
> Set single > Set single parameter
```console ```console
curl -X 'PATCH' \ curl -X 'PATCH' \

View File

@ -1,6 +1,6 @@
[project] [project]
name = "vmr-http" name = "vmr-http"
version = "0.7.1" version = "0.7.2"
description = "HTTP API for controlling Voicemeeter" description = "HTTP API for controlling Voicemeeter"
readme = "README.md" readme = "README.md"
authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }] authors = [{ name = "onyx-and-iris", email = "code@onyxandiris.online" }]

View File

@ -15,7 +15,7 @@ router.include_router(eq.create_router(eq_kind='bus'), prefix='/eq', tags=['bus
@router.patch('', tags=['bus']) @router.patch('', tags=['bus'])
@router.put('', tags=['bus']) @router.put('', tags=['bus'])
async def update_bus_params(index: int, params: BusParams, voicemeeter=Depends(get_voicemeeter_client)): def update_bus_params(index: int, params: BusParams, voicemeeter=Depends(get_voicemeeter_client)):
"""Update one or more parameters for the specified bus index.""" """Update one or more parameters for the specified bus index."""
bus = voicemeeter.bus[index] bus = voicemeeter.bus[index]
updated = {} updated = {}
@ -26,19 +26,19 @@ async def update_bus_params(index: int, params: BusParams, voicemeeter=Depends(g
@router.get('/gain', tags=['bus']) @router.get('/gain', tags=['bus'])
async def get_gain(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_gain(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gain value for the specified bus index.""" """Get the current gain value for the specified bus index."""
return {'gain': voicemeeter.bus[index].gain} return {'gain': voicemeeter.bus[index].gain}
@router.get('/mute', tags=['bus']) @router.get('/mute', tags=['bus'])
async def get_mute(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_mute(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current mute status for the specified bus index.""" """Get the current mute status for the specified bus index."""
return {'mute': voicemeeter.bus[index].mute} return {'mute': voicemeeter.bus[index].mute}
@router.get('/mono', tags=['bus']) @router.get('/mono', tags=['bus'])
async def get_mono(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_mono(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current mono status for the specified bus index.""" """Get the current mono status for the specified bus index."""
opts = ['Off', 'On', 'Stereo Reverse'] opts = ['Off', 'On', 'Stereo Reverse']
return {'mono': opts[voicemeeter.bus[index].mono]} return {'mono': opts[voicemeeter.bus[index].mono]}

View File

@ -25,7 +25,7 @@ _reversed_busmodes = {v: k for k, v in _readable_busmodes.items()}
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_bus_mode(index: int, mode: str = Body(..., embed=True), voicemeeter=Depends(get_voicemeeter_client)): def update_bus_mode(index: int, mode: str = Body(..., embed=True), voicemeeter=Depends(get_voicemeeter_client)):
"""Update the bus mode for the specified bus index.""" """Update the bus mode for the specified bus index."""
if mode not in _reversed_busmodes: if mode not in _reversed_busmodes:
raise HTTPException( raise HTTPException(
@ -36,6 +36,6 @@ async def update_bus_mode(index: int, mode: str = Body(..., embed=True), voiceme
@router.get('') @router.get('')
async def get_bus_mode(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_bus_mode(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current bus mode for the specified bus index.""" """Get the current bus mode for the specified bus index."""
return {'mode': _readable_busmodes.get(voicemeeter.bus[index].mode.get(), 'Unknown')} return {'mode': _readable_busmodes.get(voicemeeter.bus[index].mode.get(), 'Unknown')}

View File

@ -21,7 +21,7 @@ def create_router(eq_kind: str) -> APIRouter:
@cell_router.patch('') @cell_router.patch('')
@cell_router.put('') @cell_router.put('')
async def update_eq_channel_cell_params( def update_eq_channel_cell_params(
index: int, index: int,
channel_index: int, channel_index: int,
cell_index: int, cell_index: int,
@ -37,35 +37,35 @@ def create_router(eq_kind: str) -> APIRouter:
return updated return updated
@cell_router.get('/on') @cell_router.get('/on')
async def get_eq_channel_cell_on( def get_eq_channel_cell_on(
index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client) index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client)
): ):
"""Get the current on status for the specified eq channel cell.""" """Get the current on status for the specified eq channel cell."""
return {'on': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].on} return {'on': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].on}
@cell_router.get('/type') @cell_router.get('/type')
async def get_eq_channel_cell_type( def get_eq_channel_cell_type(
index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client) index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client)
): ):
"""Get the current type for the specified eq channel cell.""" """Get the current type for the specified eq channel cell."""
return {'type': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].type} return {'type': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].type}
@cell_router.get('/f') @cell_router.get('/f')
async def get_eq_channel_cell_f( def get_eq_channel_cell_f(
index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client) index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client)
): ):
"""Get the current f value for the specified eq channel cell.""" """Get the current f value for the specified eq channel cell."""
return {'f': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].f} return {'f': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].f}
@cell_router.get('/gain') @cell_router.get('/gain')
async def get_eq_channel_cell_gain( def get_eq_channel_cell_gain(
index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client) index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client)
): ):
"""Get the current gain value for the specified eq channel cell.""" """Get the current gain value for the specified eq channel cell."""
return {'gain': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].gain} return {'gain': target_cls(voicemeeter, index).eq.channel[channel_index].cell[cell_index].gain}
@cell_router.get('/q') @cell_router.get('/q')
async def get_eq_channel_cell_q( def get_eq_channel_cell_q(
index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client) index: int, channel_index: int, cell_index: int, voicemeeter=Depends(get_voicemeeter_client)
): ):
"""Get the current q value for the specified eq channel cell.""" """Get the current q value for the specified eq channel cell."""
@ -76,7 +76,7 @@ def create_router(eq_kind: str) -> APIRouter:
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_eq_params(index: int, params: EQParams, voicemeeter=Depends(get_voicemeeter_client)): def update_eq_params(index: int, params: EQParams, voicemeeter=Depends(get_voicemeeter_client)):
"""Update one or more equalizer parameters for the specified index.""" """Update one or more equalizer parameters for the specified index."""
eq = target_cls(voicemeeter, index).eq eq = target_cls(voicemeeter, index).eq
updated = {} updated = {}
@ -86,12 +86,12 @@ def create_router(eq_kind: str) -> APIRouter:
return updated return updated
@router.get('/on') @router.get('/on')
async def get_eq_on(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_eq_on(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current equalizer on status for the specified index.""" """Get the current equalizer on status for the specified index."""
return {'on': target_cls(voicemeeter, index).eq.on} return {'on': target_cls(voicemeeter, index).eq.on}
@router.get('/ab') @router.get('/ab')
async def get_eq_ab(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_eq_ab(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current equalizer A/B status for the specified index.""" """Get the current equalizer A/B status for the specified index."""
return {'ab': target_cls(voicemeeter, index).eq.ab} return {'ab': target_cls(voicemeeter, index).eq.ab}

View File

@ -10,7 +10,7 @@ router = APIRouter()
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_strip_comp_params(index: int, params: StripCompParams, voicemeeter=Depends(get_voicemeeter_client)): def update_strip_comp_params(index: int, params: StripCompParams, voicemeeter=Depends(get_voicemeeter_client)):
"""Update one or more compressor parameters for the specified strip index.""" """Update one or more compressor parameters for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
updated = {} updated = {}
@ -21,63 +21,63 @@ async def update_strip_comp_params(index: int, params: StripCompParams, voicemee
@router.get('/knob') @router.get('/knob')
async def get_strip_comp_knob(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_knob(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor knob value for the specified strip index.""" """Get the current compressor knob value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'knob': strip_comp.knob} return {'knob': strip_comp.knob}
@router.get('/gainin') @router.get('/gainin')
async def get_strip_comp_gainin(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_gainin(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor gain in value for the specified strip index.""" """Get the current compressor gain in value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'gainin': strip_comp.gainin} return {'gainin': strip_comp.gainin}
@router.get('/ratio') @router.get('/ratio')
async def get_strip_comp_ratio(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_ratio(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor ratio value for the specified strip index.""" """Get the current compressor ratio value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'ratio': strip_comp.ratio} return {'ratio': strip_comp.ratio}
@router.get('/threshold') @router.get('/threshold')
async def get_strip_comp_threshold(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_threshold(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor threshold value for the specified strip index.""" """Get the current compressor threshold value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'threshold': strip_comp.threshold} return {'threshold': strip_comp.threshold}
@router.get('/attack') @router.get('/attack')
async def get_strip_comp_attack(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_attack(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor attack value for the specified strip index.""" """Get the current compressor attack value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'attack': strip_comp.attack} return {'attack': strip_comp.attack}
@router.get('/release') @router.get('/release')
async def get_strip_comp_release(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_release(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor release value for the specified strip index.""" """Get the current compressor release value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'release': strip_comp.release} return {'release': strip_comp.release}
@router.get('/knee') @router.get('/knee')
async def get_strip_comp_knee(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_knee(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor knee value for the specified strip index.""" """Get the current compressor knee value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'knee': strip_comp.knee} return {'knee': strip_comp.knee}
@router.get('/gainout') @router.get('/gainout')
async def get_strip_comp_gainout(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_gainout(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor gain out value for the specified strip index.""" """Get the current compressor gain out value for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'gainout': strip_comp.gainout} return {'gainout': strip_comp.gainout}
@router.get('/makeup') @router.get('/makeup')
async def get_strip_comp_makeup(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_comp_makeup(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current compressor makeup status for the specified strip index.""" """Get the current compressor makeup status for the specified strip index."""
strip_comp = voicemeeter.strip[index].comp strip_comp = voicemeeter.strip[index].comp
return {'makeup': strip_comp.makeup} return {'makeup': strip_comp.makeup}

View File

@ -10,9 +10,7 @@ router = APIRouter()
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_strip_denoiser_params( def update_strip_denoiser_params(index: int, params: StripDenoiserParams, voicemeeter=Depends(get_voicemeeter_client)):
index: int, params: StripDenoiserParams, voicemeeter=Depends(get_voicemeeter_client)
):
"""Update one or more denoiser parameters for the specified strip index.""" """Update one or more denoiser parameters for the specified strip index."""
strip_denoiser = voicemeeter.strip[index].denoiser strip_denoiser = voicemeeter.strip[index].denoiser
updated = {} updated = {}
@ -23,7 +21,7 @@ async def update_strip_denoiser_params(
@router.get('/knob') @router.get('/knob')
async def get_strip_denoiser_knob( def get_strip_denoiser_knob(
index: int, index: int,
voicemeeter=Depends(get_voicemeeter_client), voicemeeter=Depends(get_voicemeeter_client),
): ):

View File

@ -9,7 +9,7 @@ router = APIRouter()
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_strip_comp_params( def update_strip_comp_params(
index: int, index: int,
gainlayer_index: int, gainlayer_index: int,
level: float = Body(..., ge=-60.0, le=12.0, embed=True), level: float = Body(..., ge=-60.0, le=12.0, embed=True),
@ -22,6 +22,6 @@ async def update_strip_comp_params(
@router.get('/level') @router.get('/level')
async def get_strip_gain_layer_level(index: int, gainlayer_index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gain_layer_level(index: int, gainlayer_index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gain layer level for the specified strip index.""" """Get the current gain layer level for the specified strip index."""
return {'gain_layer': {'level': voicemeeter.strip[index].gainlayer[gainlayer_index].gain}} return {'gain_layer': {'level': voicemeeter.strip[index].gainlayer[gainlayer_index].gain}}

View File

@ -10,7 +10,7 @@ router = APIRouter()
@router.patch('') @router.patch('')
@router.put('') @router.put('')
async def update_strip_gate_params(index: int, params: StripGateParams, voicemeeter=Depends(get_voicemeeter_client)): def update_strip_gate_params(index: int, params: StripGateParams, voicemeeter=Depends(get_voicemeeter_client)):
"""Update one or more gate parameters for the specified strip index.""" """Update one or more gate parameters for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
updated = {} updated = {}
@ -21,49 +21,49 @@ async def update_strip_gate_params(index: int, params: StripGateParams, voicemee
@router.get('/knob') @router.get('/knob')
async def get_strip_gate_knob(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_knob(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate knob value for the specified strip index.""" """Get the current gate knob value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'knob': strip_gate.knob} return {'knob': strip_gate.knob}
@router.get('/threshold') @router.get('/threshold')
async def get_strip_gate_threshold(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_threshold(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate threshold value for the specified strip index.""" """Get the current gate threshold value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'threshold': strip_gate.threshold} return {'threshold': strip_gate.threshold}
@router.get('/damping') @router.get('/damping')
async def get_strip_gate_damping(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_damping(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate damping value for the specified strip index.""" """Get the current gate damping value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'damping': strip_gate.damping} return {'damping': strip_gate.damping}
@router.get('/bpsidechain') @router.get('/bpsidechain')
async def get_strip_gate_bpsidechain(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_bpsidechain(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate sidechain value for the specified strip index.""" """Get the current gate sidechain value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'bpsidechain': strip_gate.bpsidechain} return {'bpsidechain': strip_gate.bpsidechain}
@router.get('/attack') @router.get('/attack')
async def get_strip_gate_attack(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_attack(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate attack value for the specified strip index.""" """Get the current gate attack value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'attack': strip_gate.attack} return {'attack': strip_gate.attack}
@router.get('/hold') @router.get('/hold')
async def get_strip_gate_hold(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_hold(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate hold value for the specified strip index.""" """Get the current gate hold value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'hold': strip_gate.hold} return {'hold': strip_gate.hold}
@router.get('/release') @router.get('/release')
async def get_strip_gate_release(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_strip_gate_release(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gate release value for the specified strip index.""" """Get the current gate release value for the specified strip index."""
strip_gate = voicemeeter.strip[index].gate strip_gate = voicemeeter.strip[index].gate
return {'release': strip_gate.release} return {'release': strip_gate.release}

View File

@ -18,7 +18,7 @@ router.include_router(eq.create_router(eq_kind='strip'), prefix='/eq', tags=['st
@router.patch('', tags=['strip']) @router.patch('', tags=['strip'])
@router.put('', tags=['strip']) @router.put('', tags=['strip'])
async def update_strip_params(index: int, params: StripParams, voicemeeter=Depends(get_voicemeeter_client)): def update_strip_params(index: int, params: StripParams, voicemeeter=Depends(get_voicemeeter_client)):
"""Update one or more parameters for the specified strip index.""" """Update one or more parameters for the specified strip index."""
strip = voicemeeter.strip[index] strip = voicemeeter.strip[index]
updated = {} updated = {}
@ -29,72 +29,72 @@ async def update_strip_params(index: int, params: StripParams, voicemeeter=Depen
@router.get('/gain', tags=['strip']) @router.get('/gain', tags=['strip'])
async def get_gain(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_gain(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current gain value for the specified strip index.""" """Get the current gain value for the specified strip index."""
return {'gain': voicemeeter.strip[index].gain} return {'gain': voicemeeter.strip[index].gain}
@router.get('/mute', tags=['strip']) @router.get('/mute', tags=['strip'])
async def get_mute(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_mute(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current mute status for the specified strip index.""" """Get the current mute status for the specified strip index."""
return {'mute': voicemeeter.strip[index].mute} return {'mute': voicemeeter.strip[index].mute}
@router.get('/mono', tags=['strip']) @router.get('/mono', tags=['strip'])
async def get_mono(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_mono(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current mono status for the specified strip index.""" """Get the current mono status for the specified strip index."""
return {'mono': voicemeeter.strip[index].mono} return {'mono': voicemeeter.strip[index].mono}
@router.get('/solo', tags=['strip']) @router.get('/solo', tags=['strip'])
async def get_solo(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_solo(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current solo status for the specified strip index.""" """Get the current solo status for the specified strip index."""
return {'solo': voicemeeter.strip[index].solo} return {'solo': voicemeeter.strip[index].solo}
@router.get('/A1', tags=['strip']) @router.get('/A1', tags=['strip'])
async def get_A1(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_A1(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current A1 output status for the specified strip index.""" """Get the current A1 output status for the specified strip index."""
return {'A1': voicemeeter.strip[index].A1} return {'A1': voicemeeter.strip[index].A1}
@router.get('/A2', tags=['strip']) @router.get('/A2', tags=['strip'])
async def get_A2(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_A2(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current A2 output status for the specified strip index.""" """Get the current A2 output status for the specified strip index."""
return {'A2': voicemeeter.strip[index].A2} return {'A2': voicemeeter.strip[index].A2}
@router.get('/A3', tags=['strip']) @router.get('/A3', tags=['strip'])
async def get_A3(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_A3(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current A3 output status for the specified strip index.""" """Get the current A3 output status for the specified strip index."""
return {'A3': voicemeeter.strip[index].A3} return {'A3': voicemeeter.strip[index].A3}
@router.get('/A4', tags=['strip']) @router.get('/A4', tags=['strip'])
async def get_A4(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_A4(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current A4 output status for the specified strip index.""" """Get the current A4 output status for the specified strip index."""
return {'A4': voicemeeter.strip[index].A4} return {'A4': voicemeeter.strip[index].A4}
@router.get('/A5', tags=['strip']) @router.get('/A5', tags=['strip'])
async def get_A5(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_A5(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current A5 output status for the specified strip index.""" """Get the current A5 output status for the specified strip index."""
return {'A5': voicemeeter.strip[index].A5} return {'A5': voicemeeter.strip[index].A5}
@router.get('/B1', tags=['strip']) @router.get('/B1', tags=['strip'])
async def get_B1(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_B1(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current B1 output status for the specified strip index.""" """Get the current B1 output status for the specified strip index."""
return {'B1': voicemeeter.strip[index].B1} return {'B1': voicemeeter.strip[index].B1}
@router.get('/B2', tags=['strip']) @router.get('/B2', tags=['strip'])
async def get_B2(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_B2(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current B2 output status for the specified strip index.""" """Get the current B2 output status for the specified strip index."""
return {'B2': voicemeeter.strip[index].B2} return {'B2': voicemeeter.strip[index].B2}
@router.get('/B3', tags=['strip']) @router.get('/B3', tags=['strip'])
async def get_B3(index: int, voicemeeter=Depends(get_voicemeeter_client)): def get_B3(index: int, voicemeeter=Depends(get_voicemeeter_client)):
"""Get the current B3 output status for the specified strip index.""" """Get the current B3 output status for the specified strip index."""
return {'B3': voicemeeter.strip[index].B3} return {'B3': voicemeeter.strip[index].B3}

2
uv.lock generated
View File

@ -1151,7 +1151,7 @@ wheels = [
[[package]] [[package]]
name = "vmr-http" name = "vmr-http"
version = "0.7.1" version = "0.7.2"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "fastapi" }, { name = "fastapi" },