[package]
edition = "2021"
rust-version = "1.74"
name = "transcribe-cpp"
version = "0.4.0"
build = "build.rs"
links = "transcribe_cpp"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings for transcribe.cpp, a C/C++ speech-to-text library built on ggml"
homepage = "https://github.com/handy-computer/transcribe.cpp"
readme = "README.md"
keywords = [
"transcription",
"speech",
"asr",
"stt",
"ggml",
]
categories = [
"multimedia::audio",
"api-bindings",
]
license = "MIT"
repository = "https://github.com/handy-computer/transcribe.cpp"
[features]
cuda = ["transcribe-cpp-sys/cuda"]
default = ["metal"]
dynamic-backends = [
"shared",
"transcribe-cpp-sys/dynamic-backends",
]
metal = ["transcribe-cpp-sys/metal"]
openmp = ["transcribe-cpp-sys/openmp"]
rocm = ["transcribe-cpp-sys/rocm"]
serde = ["dep:serde"]
shared = ["transcribe-cpp-sys/shared"]
vulkan = ["transcribe-cpp-sys/vulkan"]
[lib]
name = "transcribe_cpp"
path = "src/lib.rs"
[[example]]
name = "backend-select"
path = "examples/backend-select.rs"
[[example]]
name = "batch"
path = "examples/batch.rs"
[[example]]
name = "error-handling"
path = "examples/error-handling.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
[[example]]
name = "transcribe-file"
path = "examples/transcribe-file.rs"
[[test]]
name = "backend_mask"
path = "tests/backend_mask.rs"
[[test]]
name = "cancel"
path = "tests/cancel.rs"
[[test]]
name = "degradation"
path = "tests/degradation.rs"
[[test]]
name = "device_select"
path = "tests/device_select.rs"
[[test]]
name = "diarize"
path = "tests/diarize.rs"
[[test]]
name = "extensions"
path = "tests/extensions.rs"
[[test]]
name = "family"
path = "tests/family.rs"
[[test]]
name = "langid"
path = "tests/langid.rs"
[[test]]
name = "no_model"
path = "tests/no_model.rs"
[[test]]
name = "prompting"
path = "tests/prompting.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[test]]
name = "transcribe"
path = "tests/transcribe.rs"
[[test]]
name = "vad"
path = "tests/vad.rs"
[dependencies.log]
version = "0.4"
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.transcribe-cpp-sys]
version = "0.4.0"
default-features = false
[dev-dependencies.hound]
version = "3"
[dev-dependencies.postcard]
version = "1"
features = ["alloc"]
default-features = false
[dev-dependencies.serde_json]
version = "1"