diff options
| author | yum <yum.food.vr@gmail.com> | 2022-12-20 00:26:50 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2022-12-20 00:28:46 -0800 |
| commit | 8d225cfd66dfb60998b4eab43d8aa3b287375695 (patch) | |
| tree | a298f7799fcc80085d568996a837367f9d16fe55 /Scripts/transcribe.py | |
| parent | 4f3da107d4379f99ec7ade8be26bfcf908fb193f (diff) | |
GUI: Begin work generating animator
The GUI can now generate guid.map and animations.
Diffstat (limited to 'Scripts/transcribe.py')
| -rw-r--r-- | Scripts/transcribe.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Scripts/transcribe.py b/Scripts/transcribe.py index 0f7ae37..831ae66 100644 --- a/Scripts/transcribe.py +++ b/Scripts/transcribe.py @@ -94,6 +94,8 @@ def onAudioFramesAvailable( frame_count, time_info, status_flags): + if audio_state.audio_paused: + return (frames, pyaudio.paContinue) # Reduce sample rate from mic rate to Whisper rate by dropping frames. decimated = b'' @@ -207,7 +209,6 @@ def transcribe(audio_state, model, frames): #for temp in (0.00, 0.05, 0.10, 0.15, 0.20): #for temp in (0.00, 0.05): for temp in (0.00,): - print("temp: {}".format(temp)) options = whisper.DecodingOptions(language = audio_state.language, beam_size = 5, temperature = temp, without_timestamps = True) result = whisper.decode(model, mel, options) |
