mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-18 00:19:57 +01:00
Adding tests (#1256)
This commit is contained in:
parent
89d9fd13b2
commit
7d58cdaf7b
4 changed files with 7 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue