Files
rust-scribe/Cargo.toml
warren d6af9546ea feat: Add per-segment language detection and dual output files
- Add whatlang for real-time language detection per segment
- Generate .asr.json (basic) and .asrx.json (with language labels)
- Add auto-save progress with configurable interval
- Add resume functionality for interrupted transcriptions
- Add Music/Empty detection and statistics
- Update progress display with unified format
- Add comprehensive Chinese README with usage documentation
2026-03-11 18:17:55 +08:00

39 lines
1.1 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "rust-scribe"
version = "0.1.0"
edition = "2021"
description = "A high-performance video/audio transcriber with timestamps using Rust and Whisper."
authors = ["Warren Lo"]
[dependencies]
# FFmpeg 綁定:用於音頻提取和重採樣
ffmpeg-next = "8.0"
# Whisper.cpp 的 Rust 綁定:核心轉寫引擎
whisper-rs = "0.12"
whisper-rs-sys = "0.10"
# 用於命令行參數解析 (比手動解析更專業)
clap = { version = "4.5", features = ["derive"] }
# 用於處理錯誤
anyhow = "1.0"
# 可選:如果 whisper-rs 需要額外的數學運算支持
ndarray = "0.15"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
lazy_static = "1.4"
whatlang = "0.16"
# --- 新增以下內容 ---
[target.'cfg(target_os = "macos")'.dependencies]
# 如果未來需要顯式依賴某些 crate 可放在這裡
# 關鍵:告訴 cargo 在 macOS 上編譯 whisper-rs (當啟用 metal 時) 需要連結哪些框架
# 注意whisper-rs 的 build script 通常會自動處理,但有時需要手動干預
# 更可靠的方法是在 .cargo/config.toml 中設置