Merge pull request #66 from artob/improve-readme

Add instructions for running the examples
This commit is contained in:
0/0 2023-06-18 15:59:12 +00:00 committed by GitHub
commit 2c8fd9cdc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,17 @@
Rust bindings to [whisper.cpp](https://github.com/ggerganov/whisper.cpp/) Rust bindings to [whisper.cpp](https://github.com/ggerganov/whisper.cpp/)
## Usage ## Usage
```bash
git clone --recursive https://github.com/tazz4843/whisper-rs.git
cd whisper-rs
cargo run --example basic_use
cargo run --example audio_transcription
```
```rust ```rust
use whisper_rs::{WhisperContext, FullParams, SamplingStrategy}; use whisper_rs::{WhisperContext, FullParams, SamplingStrategy};