mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 14:45:46 +01:00
Will let select from all media files by default (#1258)
This commit is contained in:
parent
d53bd6df18
commit
dfb8ba6614
2 changed files with 4 additions and 3 deletions
|
|
@ -213,8 +213,10 @@ class Stopped(Exception):
|
|||
pass
|
||||
|
||||
|
||||
SUPPORTED_AUDIO_FORMATS = "Audio files (*.mp3 *.wav *.m4a *.ogg *.opus *.flac);;\
|
||||
Video files (*.mp4 *.webm *.ogm *.mov *.mkv *.avi *.wmv);;All files (*.*)"
|
||||
SUPPORTED_AUDIO_FORMATS = "Media files (*.mp3 *.wav *.m4a *.ogg *.opus *.flac *.mp4 *.webm *.ogm *.mov *.mkv *.avi *.wmv);;\
|
||||
Audio files (*.mp3 *.wav *.m4a *.ogg *.opus *.flac);;\
|
||||
Video files (*.mp4 *.webm *.ogm *.mov *.mkv *.avi *.wmv);;\
|
||||
All files (*.*)"
|
||||
|
||||
|
||||
def get_output_file_path(
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ class WhisperCpp:
|
|||
params.print_progress = print_progress
|
||||
params.language = self.instance.get_string((transcription_options.language or "auto"))
|
||||
params.translate = transcription_options.task == Task.TRANSLATE
|
||||
params.max_len = ctypes.c_int(1)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue