summaryrefslogtreecommitdiffstats
path: root/Scripts/osc_ctrl.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-08-11 11:03:01 -0700
committeryum <yum.food.vr@gmail.com>2023-08-11 11:03:01 -0700
commit52ca7435f788e9bf981c7786046d5ca093e9688d (patch)
treee747d351723d9568fc26d98990fc77847b8a8acd /Scripts/osc_ctrl.py
parent6a851e393e02cea8943115db46295d1858338b42 (diff)
Deprecate old parameters
Deprecate the visual and auditory speech indicators, saving 4 bits across the board. Fixed overhead is now 21 bits.
Diffstat (limited to 'Scripts/osc_ctrl.py')
-rw-r--r--Scripts/osc_ctrl.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/Scripts/osc_ctrl.py b/Scripts/osc_ctrl.py
index 3ff56ca..e7f422b 100644
--- a/Scripts/osc_ctrl.py
+++ b/Scripts/osc_ctrl.py
@@ -51,14 +51,6 @@ def toggleBoard(client, show: bool):
addr = "/avatar/parameters/" + generate_utils.getToggleParam()
client.send_message(addr, show)
-def indicateSpeech(client, is_speaking: bool):
- addr = "/avatar/parameters/" + generate_utils.getIndicator0Param()
- client.send_message(addr, is_speaking)
-
-def indicatePaging(client, is_paging: bool):
- addr = "/avatar/parameters/" + generate_utils.getIndicator1Param()
- client.send_message(addr, is_paging)
-
def enable(client):
addr="/avatar/parameters/" + generate_utils.getEnableParam()
client.send_message(addr, True)
@@ -98,11 +90,6 @@ def pageMessage(osc_state: OscState, msg: str, estate: EmotesState) -> bool:
#print("sending page {}: {} ({})".format(slice_idx, msg_slice,
# len(msg_slice)))
- empty_slice = " " * len(msg_slice)
- if msg_slice != empty_slice:
- addr="/avatar/parameters/" + generate_utils.getSpeechNoiseToggleParam()
- osc_state.client.send_message(addr, True)
-
# Really long messages just wrap back around.
which_region = (slice_idx % generate_utils.config.numRegions(0))
@@ -138,10 +125,6 @@ def pageMessage(osc_state: OscState, msg: str, estate: EmotesState) -> bool:
# Wait for parameter sync.
time.sleep(SYNC_DELAY_S)
- if msg_slice != empty_slice:
- addr="/avatar/parameters/" + generate_utils.getSpeechNoiseToggleParam()
- osc_state.client.send_message(addr, False)
-
# Like `pageMessage` but uses the built-in chatbox. The built-in chatbox
# truncates data at about 150 chars, so just send the suffix of the message for
# now.