summaryrefslogtreecommitdiffstats
path: root/Scripts/libtastt.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-09-05 20:51:20 -0700
committeryum <yum.food.vr@gmail.com>2023-09-05 20:51:20 -0700
commitb40ded2981d5b037cdab9b78ff1ea0f8f22658d3 (patch)
treee6f06de7e2c78f5f618fda899513febc6f904310 /Scripts/libtastt.py
parent6020bc056d8992523ae62feb4edfbae10b169880 (diff)
Put OSC logic into its own thread
This logic is highly IO bound *and* latency critical so it makes sense to put it into its own thread. Also: * Collector::drop* methods return the dropped audio. Committer includes that audio in commits. Transcription thread holds onto it. When the user segments their speech with a button press, the transcription thread sends the entire combined audio of all commits over to Whisper to be transcribed. This allows us to recover from errors introduced by segmentation. * Remove unused animator params * Fix issue where clearing the board doesn't completely reset STT state TODO: * Coalescing does not occur for in-place updates. It should.
Diffstat (limited to 'Scripts/libtastt.py')
-rw-r--r--Scripts/libtastt.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Scripts/libtastt.py b/Scripts/libtastt.py
index b05a724..5e216ca 100644
--- a/Scripts/libtastt.py
+++ b/Scripts/libtastt.py
@@ -689,8 +689,6 @@ def generateFXController(anim: libunity.UnityAnimator) -> typing.Dict[int, libun
anim.addParameter(generate_utils.getEnableParam(), bool)
anim.addParameter(generate_utils.getDummyParam(), bool)
- anim.addParameter(generate_utils.getHipToggleParam(), bool)
- anim.addParameter(generate_utils.getHandToggleParam(), bool)
anim.addParameter(generate_utils.getToggleParam(), bool)
anim.addParameter(generate_utils.getClearBoardParam(), bool)
anim.addParameter(generate_utils.getScaleParam(), float)