Adding tests (#1256)

This commit is contained in:
Raivis Dejus 2025-10-04 14:23:59 +03:00 committed by GitHub
commit 7d58cdaf7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -25,7 +25,8 @@ class LocalWhisperCppServerTranscriber(OpenAIWhisperAPIFileTranscriber):
"--port", "3000",
"--inference-path", "/audio/transcriptions",
"--threads", str(os.getenv("BUZZ_WHISPERCPP_N_THREADS", (os.cpu_count() or 8) // 2)),
"--model", task.model_path
"--model", task.model_path,
"--suppress-nst"
]
if task.transcription_options.language is not None:

View file

@ -166,6 +166,7 @@ class WhisperCpp:
params.max_len = 1 if transcription_options.word_level_timings else 0
params.token_timestamps = transcription_options.word_level_timings
params.initial_prompt = self.instance.get_string(transcription_options.initial_prompt)
params.suppress_nst = True # To prevent errors in transcripts with music
return params
def __del__(self):

View file

@ -31,7 +31,7 @@ OpenAI's [Whisper](https://github.com/openai/whisper).
- [Command-Line Interface](#command-line-interface)
- Available on Mac, Windows, and Linux
## Transcription Viewer Interface
## Transcription Viewer
Buzz features a powerful transcription viewer that makes it easy to work with your transcriptions:
@ -41,4 +41,4 @@ Buzz features a powerful transcription viewer that makes it easy to work with yo
- **🎨 Clean Interface**: Conditional visibility keeps the interface uncluttered
- **💾 State Persistence**: Remembers your preferences between sessions
[Learn more about the Transcription Viewer Interface →](https://chidiwilliams.github.io/buzz/docs/usage/transcription_viewer)
[Learn more about the Transcription Viewer →](https://chidiwilliams.github.io/buzz/docs/usage/transcription_viewer)

View file

@ -1,4 +1,4 @@
# Transcription Viewer Interface
# Transcription Viewer
The Buzz transcription viewer provides a powerful interface for reviewing, editing, and navigating through your transcriptions. This guide covers all the features available in the transcription viewer.
@ -105,6 +105,7 @@ The search bar appears below the toolbar when activated and provides:
- **Button Sizing**: Speed control buttons match the size of search navigation buttons for visual consistency
## Keyboard Shortcuts
(since version 1.3.0)
### Audio Playback
- **`Ctrl+P` / `Cmd+P`**: Play/Pause audio