Skip to content

Commit

Permalink
Improved whisper params
Browse files Browse the repository at this point in the history
  • Loading branch information
beveradb committed Jul 10, 2024
1 parent 6a273ee commit a15b68d
Show file tree
Hide file tree
Showing 3 changed files with 468 additions and 453 deletions.
2 changes: 1 addition & 1 deletion lyrics_transcriber/transcriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def transcribe(self):
self.logger.debug(f"no cached transcription file found, running whisper transcribe with model: {self.transcription_model}")
audio = whisper.load_audio(self.audio_filepath)
model = whisper.load_model(self.transcription_model, device="cpu")
result = whisper.transcribe(model, audio, language="en")
result = whisper.transcribe(model, audio, language="en", vad="auditok", beam_size=5, temperature=0.2, best_of=5)

self.logger.debug(f"transcription complete, performing post-processing cleanup")

Expand Down
Loading

0 comments on commit a15b68d

Please sign in to comment.