docs.rs failed to build whisper-rs-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
whisper-rs-0.16.0
whisper-rs
Rust bindings to whisper.cpp
Usage
See examples/basic_use.rs for more details.
Lower level bindings are exposed if needed, but the above should be enough for most use cases. See the docs: https://docs.rs/whisper-rs/ for more details.
Building
By default, you will experience a vague error from rustc about not being able to "find native static library `whisper`"
To resolve this, you need to clone the original whisper.cpp repo and build it. Then, set RUSTFLAGS to point to the built library.
You also need to link against the C++ standard library, which can be done with the -lstdc++ flag.
git clone https://github.com/ggerganov/whisper.cpp
cd whisper.cpp
make libwhisper.a
cd ..
RUSTFLAGS="-L whisper.cpp/ -Clink-args=-lstdc++" cargo build
License
tl;dr: public domain