mirror of
https://github.com/chidiwilliams/buzz.git
synced 2026-03-14 14:45:46 +01:00
Fix for row highlighting on Windows (#1243)
This commit is contained in:
parent
22803556fb
commit
f80a0c8d2e
2 changed files with 7 additions and 4 deletions
|
|
@ -85,14 +85,17 @@ class TranscriptionWorker(QObject):
|
|||
if self.transcription_options.extract_speech and os.path.exists(speech_path):
|
||||
transcription_file = str(speech_path)
|
||||
transcription_file_exists = True
|
||||
# TODO - Fix VAD and Silence suppression that fails to work/download VAd model in compilded form on Mac and Windows
|
||||
|
||||
try:
|
||||
result = stable_whisper.transcribe_any(
|
||||
self.get_transcript,
|
||||
audio = whisper_audio.load_audio(transcription_file),
|
||||
input_sr=whisper_audio.SAMPLE_RATE,
|
||||
vad=transcription_file_exists,
|
||||
suppress_silence=transcription_file_exists,
|
||||
# vad=transcription_file_exists,
|
||||
# suppress_silence=transcription_file_exists,
|
||||
vad=False,
|
||||
suppress_silence=False,
|
||||
regroup=self.regroup_string,
|
||||
check_sorted=False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -217,8 +217,8 @@ class TestTranscriptionViewerWidget:
|
|||
assert call_args[0] == worker.get_transcript
|
||||
assert call_kwargs['audio'] == mock_load_audio.return_value
|
||||
assert call_kwargs['regroup'] == regroup_string
|
||||
assert call_kwargs['vad'] is True
|
||||
assert call_kwargs['suppress_silence'] is True
|
||||
assert call_kwargs['vad'] is False
|
||||
assert call_kwargs['suppress_silence'] is False
|
||||
|
||||
result_ready_spy.assert_called_once()
|
||||
emitted_segments = result_ready_spy.call_args[0][0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue