Revert "[feat] enhance error handling, CLI options, and progress display; add --continue-on-error flag and improve maintainability"

This reverts commit ee67b56d6b.
This commit is contained in:
2025-08-12 06:00:11 +02:00
parent d3310695d2
commit 6a9736c50a
5 changed files with 667 additions and 422 deletions

View File

@@ -304,7 +304,6 @@ pub fn select_backend(requested: BackendKind, verbose: bool) -> Result<Selection
// Internal helper: transcription using whisper-rs with CPU/GPU (depending on build features)
#[allow(clippy::too_many_arguments)]
#[cfg(feature = "whisper")]
pub(crate) fn transcribe_with_whisper_rs(
audio_path: &Path,
speaker: &str,
@@ -430,16 +429,3 @@ pub(crate) fn transcribe_with_whisper_rs(
}
Ok(items)
}
#[allow(clippy::too_many_arguments)]
#[cfg(not(feature = "whisper"))]
pub(crate) fn transcribe_with_whisper_rs(
_audio_path: &Path,
_speaker: &str,
_lang_opt: Option<&str>,
_progress_tx: Option<Sender<ProgressMessage>>,
) -> Result<Vec<OutputEntry>> {
Err(anyhow!(
"Transcription requires the 'whisper' feature. Rebuild with --features whisper (and optional gpu-cuda/gpu-hip)."
))
}