Skip to content

Commit

Permalink
Refactor .gitignore to ignore the 'data/' directory
Browse files Browse the repository at this point in the history
Refactor whisper_transcribe.py to fix sleep behavior in ContinuousTranscriberProcess
  • Loading branch information
royshil committed Oct 22, 2024
1 parent 8eb6b1b commit 909a14e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
data/

# Byte-compiled / optimized / DLL files
__pycache__
*.py[cod]
Expand Down
3 changes: 2 additions & 1 deletion src/audio/whisper_transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def _result_loop(self):
result = self.result_queue.get()
transcription, is_partial = result
self.callback(transcription, is_partial)
time.sleep(0.25)
else:
time.sleep(0.25)

def _transcribe_loop(
input_queue: mp.Queue,
Expand Down

0 comments on commit 909a14e

Please sign in to comment.