- 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
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[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 中設置
|