From bd8b63a357bb374f5875f0fedf2d677589419810 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 22 Nov 2022 15:36:19 -0800 Subject: Rework input controls Press joystick once to start recording, again to stop. When you start recording, any previous text on the board is cleared. Add 2 visual indicators: one to indicate speech, another to indicate that audio is paging. --- osc_ctrl.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'osc_ctrl.py') diff --git a/osc_ctrl.py b/osc_ctrl.py index be853dc..ea0c145 100644 --- a/osc_ctrl.py +++ b/osc_ctrl.py @@ -292,6 +292,14 @@ def clear(client, tx_state): tx_state.last_msg_encoded = [] +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) + if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-i", default="127.0.0.1", help="OSC server IP") -- cgit v1.2.3