# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.77" name = "norma" version = "0.0.3" authors = ["Mike Ivanichev "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A pure Rust speech to text library" homepage = "https://github.com/MikeIvanichev/norma" readme = "README.md" keywords = [ "stt", "ai", "whisper", "transcription", ] categories = ["multimedia::audio"] license = "Apache-2.0 OR MIT" repository = "https://github.com/MikeIvanichev/norma" [lib] name = "norma" path = "src/lib.rs" [[example]] name = "whisper-mic" path = "examples/whisper-mic.rs" [[test]] name = "transcriber" path = "tests/transcriber.rs" [dependencies.byteorder] version = "1.5.0" optional = true [dependencies.candle-core] version = "0.7.2" optional = true [dependencies.candle-nn] version = "0.7.2" optional = true [dependencies.candle-transformers] version = "0.7.2" optional = true [dependencies.cpal] version = "0.15.3" [dependencies.dasp_frame] version = "0.11.0" [dependencies.dasp_interpolate] version = "0.11.0" features = ["sinc"] [dependencies.dasp_ring_buffer] version = "0.11.0" [dependencies.dasp_sample] version = "0.11.0" [dependencies.dasp_signal] version = "0.11.0" [dependencies.hf-hub] version = "0.3.2" features = ["tokio"] optional = true [dependencies.jod-thread] version = "0.1.2" [dependencies.rand] version = "0.8.5" optional = true [dependencies.serde] version = "1.0.202" optional = true [dependencies.serde_json] version = "1.0.119" optional = true [dependencies.strum] version = "0.26.3" features = ["derive"] optional = true [dependencies.thingbuf] version = "0.1.6" [dependencies.thiserror] version = "1.0.61" [dependencies.tokenizers] version = "0.20.0" optional = true [dependencies.tokio] version = "1.40.0" features = ["sync"] [dependencies.tracing] version = "0.1.40" [dev-dependencies.tokio] version = "1.40.0" features = ["full"] [features] _mock = [] accelerate = [ "candle-core/accelerate", "candle-nn/accelerate", "candle-transformers/accelerate", ] cuda = [ "candle-core/cuda", "candle-nn/cuda", "candle-transformers/cuda", ] cudnn = [ "cuda", "candle-core/cudnn", ] default = [ "serde", "whisper", "_mock", ] flash-attn = [ "cuda", "candle-transformers/flash-attn", ] jack = ["cpal/jack"] metal = [ "candle-core/metal", "candle-nn/metal", "candle-transformers/metal", ] oboe-shared-stdcxx = ["cpal/oboe-shared-stdcxx"] serde = ["dep:serde"] whisper = [ "candle-core", "candle-nn", "candle-transformers", "tokenizers", "hf-hub", "serde_json", "rand", "byteorder", "strum", ] [target."cfg(any())".dependencies.openssl] version = "0.10.55" optional = true