diff --git a/src/local_transcriber/backends/openvino.py b/src/local_transcriber/backends/openvino.py index ebbe3bf..375c07a 100644 --- a/src/local_transcriber/backends/openvino.py +++ b/src/local_transcriber/backends/openvino.py @@ -106,7 +106,8 @@ class OpenVINOBackend: if language: kwargs["language"] = f"<|{language}|>" - duration_str = f"{int(duration // 60):02d}:{int(duration % 60):02d}" + dur_min = int(duration // 60) + duration_str = f"{dur_min} мин" if dur_min > 0 else f"{int(duration)} сек" pcm_list = raw_speech.tolist() result = _generate_with_progress(model, pcm_list, kwargs, duration_str, on_status) @@ -200,7 +201,7 @@ def _generate_with_progress( while thread.is_alive(): elapsed = int(time.monotonic() - start) elapsed_str = f"{elapsed // 60:02d}:{elapsed % 60:02d}" - _notify(on_status, f"Транскрибирую (OpenVINO)... {elapsed_str} / {duration_str} аудио") + _notify(on_status, f"Транскрибирую {duration_str} аудио (OpenVINO)... прошло {elapsed_str}") thread.join(timeout=1.0) if error_box[0] is not None: diff --git a/src/local_transcriber/cli.py b/src/local_transcriber/cli.py index 7c56316..95b07ba 100644 --- a/src/local_transcriber/cli.py +++ b/src/local_transcriber/cli.py @@ -200,7 +200,7 @@ def _run_single( write_transcript(content, output_path) elapsed = time.monotonic() - start - console.print(f"Транскрипт сохранён: [bold]{output_path}[/bold]", style="green") + console.print(f"Транскрипт сохранён: \"{output_path}\"", style="green") console.print(f" Сегментов: {len(result.segments)} Время: {elapsed:.1f}с")