From b1efbf5ce1ebd584796d4a57cf9c7b6517f91fac Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 28 Jun 2023 22:11:46 -0700 Subject: Bugfix: commit no longer wipes out audio buffer Audio data is stored in chunks of frames, not in individual frames. When I commit a transcript, I want to get rid of the portion of the audio data responsible for that particular transcript. I have code that does this, but it was dropping a slice of the list assuming that each sample is stored individually. Extra fun: Because we have to decimate mic frames, we have to convert between whisper frames and mic frames to drop the correct amount of audio data. --- GUI/GUI/GUI/Frame.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'GUI') diff --git a/GUI/GUI/GUI/Frame.cpp b/GUI/GUI/GUI/Frame.cpp index 69def6b..236d375 100644 --- a/GUI/GUI/GUI/Frame.cpp +++ b/GUI/GUI/GUI/Frame.cpp @@ -2137,9 +2137,6 @@ void Frame::OnAppStart(wxCommandEvent& event) { return; } - Log(transcribe_out_, "Commit fuzz threshold str: {}\n", commit_fuzz_threshold_str); - Log(transcribe_out_, "Commit fuzz threshold: {}\n", commit_fuzz_threshold); - app_c_->microphone = kMicChoices[which_mic].ToStdString(); app_c_->language = kLangChoices[which_lang].ToStdString(); app_c_->language_target = kLangTargetChoices[which_translate_target].ToStdString(); -- cgit v1.2.3