Add some logging utilities to capture whisper.cpp output

This commit is contained in:
Niko 2024-01-09 17:38:28 -07:00
parent 9861dfdb93
commit 31b5976b17
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B
4 changed files with 100 additions and 0 deletions

View file

@ -15,6 +15,8 @@ repository = "https://github.com/tazz4843/whisper-rs"
[dependencies]
whisper-rs-sys = { path = "sys", version = "0.8" }
log = { version = "0.4", optional = true }
tracing = { version = "0.1", optional = true }
[dev-dependencies]
hound = "3.5.0"
@ -30,6 +32,8 @@ openblas = ["whisper-rs-sys/openblas"]
metal = ["whisper-rs-sys/metal", "_gpu"]
_gpu = []
test-with-tiny-model = []
whisper-cpp-log = ["dep:log"]
whisper-cpp-tracing = ["dep:tracing"]
[package.metadata.docs.rs]
features = ["simd"]