From b40ded2981d5b037cdab9b78ff1ea0f8f22658d3 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 5 Sep 2023 20:51:20 -0700 Subject: 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. --- Scripts/libtastt.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'Scripts/libtastt.py') 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) -- cgit v1.2.3