[package] name = "lumotia-transcription" version.workspace = true edition.workspace = true repository.workspace = true license.workspace = true description = "Speech-to-text engine wrappers, model management, and inference concurrency for Lumotia" build = "build.rs" [features] # Whisper backend (direct whisper-rs). Default on — gating it exists so # a future Windows non-AVX2 build, or a cloud-only ASR configuration, # can drop whisper-rs-sys entirely per brief item #13. Disabling this # feature also drops the WhisperRsBackend module and the load_whisper # entry point. # # `whisper-vulkan` is a separate feature so a non-Vulkan target (Android # without GPU drivers, a CPU-only Windows build) can pull in whisper-rs # but skip the Vulkan backend. Build CPU-only with: # cargo build -p lumotia-transcription --no-default-features --features whisper default = ["whisper", "whisper-vulkan"] whisper = ["dep:whisper-rs"] whisper-vulkan = ["whisper-rs?/vulkan"] [dependencies] lumotia-core = { path = "../core" } # TranscriptionProvider async trait + EngineProfile + ProviderId. The # trait lives in cloud-providers so an OEM licensee can implement it # without depending on transcription internals. lumotia-cloud-providers = { path = "../cloud-providers" } # Async-trait for the LocalProviderAdapter impl. async-trait = "0.1" # Parakeet via ONNX. Whisper is handled directly via whisper-rs below. transcribe-rs = { version = "0.3", default-features = false, features = ["onnx"] } # Async runtime for spawn_blocking tokio = { version = "1", features = ["rt", "sync"] } # Model downloads reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream"] } futures-util = "0.3" # Download integrity verification sha2 = "0.10" # Gated behind the `whisper` feature (see [features] above). Vulkan is # additive via the `whisper-vulkan` feature so non-GPU targets can drop it. whisper-rs = { version = "0.16", default-features = false, optional = true } # Typed error enum used by WhisperRsBackend + elsewhere. Kept # unconditional because it is a derive-macro crate with negligible # build cost. thiserror = "2" # Structured logging at backend boundaries (observability for initial_prompt flow). tracing = "0.1" [dev-dependencies] # TcpListener fixture for the download resume tests (mirrors lumotia-llm). # `macros` and `rt-multi-thread` enable #[tokio::test] and the multi-threaded # scheduler used by the orchestrator tests. tokio = { version = "1", features = ["rt", "rt-multi-thread", "sync", "net", "io-util", "macros"] } tempfile = "3" # Test-only — used by tests/thread_sweep.rs to label physical vs logical # core counts in the scaling table. Production code uses the # `lumotia_core::constants::inference_thread_count` helper instead. num_cpus = "1"