Commit graph

38 commits

Author SHA1 Message Date
Niko
96bbf7b89b
Add a quick entrypoint to the root docs 2025-08-13 01:42:49 -07:00
Niko
15e70ffd07
Refactor the entire token/segment usage
This was spurred by noticing a trivial case of UB in the original code:
all one needed was an out-of-bounds index on any of several methods with tokens or segment indexes on the state to cause UB.

I took this opportunity to consolidate methods into Rust structs that verify their index before use.
2025-08-02 18:45:42 -07:00
Niko
ef095214b7
Publicly export the VAD structs 2025-07-30 17:38:15 -07:00
Niko
55e54212f1
Update whisper.cpp to v1.7.6 2025-07-30 17:04:48 -07:00
HidetoshiMatsuo
dac152cad4 Add vulkan device list function. 2025-05-13 14:19:45 +09:00
Martin Mende
54799643e2
Exposing GGMLLogLevel for custom log callbacks (#203)
* Made GGMLLogLevel public
2025-02-21 22:23:21 +00:00
Niko
1db502bc1a
Make logging generic across backends and simplify the code 2025-02-10 14:02:19 -07:00
Stephen M. Coakley
fe9ffb8030 Expose whisper.cpp version as a static string
Add a `WHISPER_CPP_VERSION` static that contains the version number of whisper.cpp that whisper-rs was built with. This can be useful for downstream applications for debugging and logging purposes.

This is implemented using [build script metadata](https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key) for whisper-rs-sys to expose the version number of whisper.cpp defined in `CMakeLists.txt` as metadata to crates that depend on it. Then whisper-rs accesses that build metadata and defines its own internal compile-time environment variable containing the same value, which is then assigned to a static variable.

It seemed better to expose this information through build metadata rather than defining a static in whisper-rs-sys directly, despite the extra indirection, so as to keep whisper-rs-sys as pure bindings.
2024-09-10 12:38:33 -05:00
thewh1teagle
c674b7e101
feat: add new segment callback bindings 2024-05-28 21:21:00 +03:00
arizhih
ce17f9a441 Re-export whisper_ahead 2024-05-18 00:06:53 +02:00
arizhih
482860d0d6 Pass aheads by reference, add dtw_mem_size param, rustfmt 2024-05-17 02:05:12 +02:00
arizhih
da6b410439 Add safe wrapper for raw dtw parameters 2024-05-16 18:58:48 +02:00
arizhih
1160b1b94e
Merge branch 'tazz4843:master' into update-whisper-cpp 2024-05-07 13:36:30 +02:00
jiahua
f30d0ea0a1 fix: rustfmt 2024-04-26 16:23:32 +08:00
jiahua
8b587b97a9 rename WhisperContext 2024-04-25 16:01:20 +08:00
jiahua
6e04f76e41 rename WhisperInnerContext 2024-04-25 16:00:36 +08:00
jiahua
9d978add9d refactor(state): create_state from whisper context wrapper 2024-04-25 15:33:06 +08:00
arizhih
813a433a52 Update whisper.cpp version to 1.5.5 2024-04-23 17:13:07 +02:00
Niko
b9fdf149be
Fix unused warnings 2024-04-06 11:33:21 -06:00
Niko
7714a10f95
Add raw-api feature flag and document all flags 2024-04-06 11:27:31 -06:00
Niko
a325a937e5
Fix unused static issue 2024-04-06 11:10:01 -06:00
Niko
8bc3a435f2
Merge branch 'master' into log-trampolines 2024-03-15 20:04:10 +00:00
Niko
ffd6196caa
Fix compile errors 2024-01-10 18:04:02 -07:00
Niko
31b5976b17
Add some logging utilities to capture whisper.cpp output 2024-01-09 17:38:28 -07:00
Niko
f3b155c44f
Update audio utilities 2024-01-09 17:32:04 -07:00
Niko
249b7321c9
Remove SIMD functions
Benchmarking showed
that they were usually at least 2.5x slower on common platforms (x86_64),
and the maintenance overhead tracking nightly wasn't worth it.
2024-01-08 14:54:50 -07:00
Chris Raethke
ef7d037d75 Expose WhisperGrammar* from the lib 2023-11-21 18:30:08 +10:00
Chris Raethke
8d462f5dd3 Expose WhisperContextParameters and update examples 2023-11-20 20:42:34 +10:00
Niko
8690d35deb
Update whisper.cpp to v1.5 and add all structs 2023-11-16 18:56:50 -07:00
Niko
4b45810dca
Update whisper.cpp 2023-10-06 21:49:40 -06:00
fakecore
81e1466784 feat: expose whisper_rs_sys::{whisper_context,whisper_state} for callback function 2023-08-01 00:57:57 +08:00
yuniruyuni
473b19cf22 fix: public WhisperState from lib 2023-04-26 11:54:58 +09:00
Zero
13d44e5881
add changes from whisper.cpp update 2023-04-17 17:57:00 -06:00
0/0
0da39195c0
disable clippy::uninlined_format_args 2023-02-06 18:59:38 -07:00
0/0
f810c63a39
add new params 2022-12-14 17:11:57 -07:00
0/0
ce734cca04
add WhisperTokenData type 2022-12-14 17:11:09 -07:00
0/0
1632ac11fe
update upstream whisper.cpp and fix breaking changes 2022-10-28 19:37:42 -06:00
0/0
e12122a6ed
Initial commit 2022-10-09 20:17:31 -06:00