Fix for row highlighting on Windows (#1243)

This commit is contained in:
Raivis Dejus 2025-09-16 21:37:04 +03:00 committed by GitHub
commit f80a0c8d2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -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,
)

View file

@ -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]