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/generate_utils.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Scripts/generate_utils.py') diff --git a/Scripts/generate_utils.py b/Scripts/generate_utils.py index c486201..1e12103 100644 --- a/Scripts/generate_utils.py +++ b/Scripts/generate_utils.py @@ -30,12 +30,6 @@ config = Config() def getDummyParam(): return "TaSTT_Dummy" -def getHipToggleParam(): - return "TaSTT_Hip_Toggle" - -def getHandToggleParam(): - return "TaSTT_Hand_Toggle" - def getToggleParam(): return "TaSTT_Toggle" -- cgit v1.2.3