Commit graph

468 commits

Author SHA1 Message Date
Niko
d8b6aefe06
Merge pull request #170 from thewh1teagle/feat/vulkan
Feat/vulkan
2024-09-13 21:07:32 +00:00
Niko
59dea7e6af
Merge pull request #172 from sagebind/version-info 2024-09-11 15:29:25 +00:00
Stephen M. Coakley
7663f97372 cargo fmt 2024-09-11 09:52:47 -05: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
Niko
8596d2d98c
Merge pull request #169 from arizhih/whisper-cpp-latest
feat: Add support for new whisper.cpp project structure
2024-09-01 23:15:18 +00:00
Niko
166da11ebd
Merge pull request #167 from thewh1teagle/fix/link-openblas
fix: link openblas path correctly
2024-09-01 23:13:19 +00:00
Niko
2ee68ff56c
Merge pull request #162 from thewh1teagle/feat/add-clone-to-params
feat: add clone to params
2024-09-01 23:12:03 +00:00
thewh1teagle
e78460d325
Merge branch 'whisper-cpp-latest' into feat/vulkan 2024-08-21 16:33:05 +03:00
thewh1teagle
fdc290e37f
chore: update whisper.cpp 2024-08-21 16:28:08 +03:00
arizhih
a6d25d8797 Update whisper.cpp and docs 2024-08-21 10:46:32 +02:00
thewh1teagle
e33cc3eb22
feat: add vulkan with new whisper.cpp structure
Co-authored-by: newfla <newfla@hotmail.it>
2024-08-18 21:23:46 +03:00
arizhih
044e085555 Update whisper.cpp and bindings 2024-08-09 14:08:10 +02:00
arizhih
ec609f18ff Add support for new whisper.cpp project structure
Remove opencl feature, removed in whisper.cpp
Add openmp feature and enable by default as in whisper.cpp
Update bindings
2024-08-08 15:55:47 +02:00
thewh1teagle
67924ca473
fix: link openblas path correctly 2024-08-01 16:24:44 +03:00
Niko
744804a8aa
Merge pull request #163 from arizhih/fix-lang-detect
fix: lang_detect not working properly
2024-07-17 18:57:21 +00:00
Niko
7634d3181f
Merge pull request #158 from thewh1teagle/feat/pass-cmake-flags
feat(sys): allow passing more cmake flags
2024-07-17 18:37:01 +00:00
arizhih
bbdc8a07ef Fix lang_detect function 2024-07-10 10:24:25 +02:00
thewh1teagle
a5f516acfd
feat: add clone to params 2024-07-10 02:37:33 +03:00
arizhih
84522742da Enable WHISPER_DEBUG flag to get DEBUG logs on debug builds 2024-07-09 12:01:49 +02:00
thewh1teagle
d17e03caa6
cargo fmt 2024-06-08 00:54:14 +03:00
thewh1teagle
35aca74d64
feat(sys): allow passing more cmake flags 2024-06-07 22:23:53 +03:00
Niko
f1030ef762
Merge pull request #148 from hlhr202/feature/fix-metal
Feature/fix metal
2024-06-03 04:42:17 +00:00
Niko
b46876ae5a
Merge pull request #154 from newfla/hip_linux
feat: ROCm linux support
2024-06-02 19:00:16 +00:00
flavio
ce71477a37 fix: fmt 2024-06-02 20:46:12 +02:00
flavio
18d8a96d6e improved panic message 2024-06-02 12:43:14 +02:00
flavio
41d909f5ef rocm linux support 2024-05-31 09:58:48 +02:00
Niko
e6271bf0f3
Merge pull request #153 from thewh1teagle/feat/new-segment-callback
Feat/new segment callback
2024-05-29 15:07:51 +00:00
hlhr202
8872109d04 optim: use build config instead of copying metal file to target folder 2024-05-29 10:42:25 +08:00
hlhr202
3f27c17fdf Merge remote-tracking branch 'origin/master' into feature/fix-metal 2024-05-29 10:25:41 +08:00
thewh1teagle
279bdcd33c
Merge branch 'master' into feat/new-segment-callback 2024-05-29 01:37:47 +03:00
Niko
9e07fba125
Merge pull request #152 from thewh1teagle/feat/pass-whisper-cmake-flags
feat(sys): pass whisper cmake flags from environment variables
2024-05-28 22:04:07 +00:00
Niko
d7c20844fd
Merge pull request #142 from arizhih/update-whisper-cpp
Update whisper.cpp version to 1.6.2
2024-05-28 22:01:50 +00:00
thewh1teagle
c674b7e101
feat: add new segment callback bindings 2024-05-28 21:21:00 +03:00
thewh1teagle
1f4c49ae68
Merge branch 'update-whisper-cpp' of https://github.com/arizhih/whisper-rs into feat/new-segment-callback 2024-05-28 21:09:11 +03:00
thewh1teagle
991a1aefa5
feat(sys): pass whisper cmake flags from environment variables 2024-05-28 21:04:03 +03:00
arizhih
ecd2b613db Update whisper.cpp version to 1.6.2 2024-05-27 12:16:41 +02:00
arizhih
ce17f9a441 Re-export whisper_ahead 2024-05-18 00:06:53 +02:00
arizhih
0c8798c986 Use proper lifetimes, add DTW usage example 2024-05-17 14:47:58 +02:00
hlhr202
357e1228af Merge remote-tracking branch 'origin/master' into feature/fix-metal 2024-05-17 13:06:22 +08: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
dcfcbced18 Generate bindings + rustfmt 2024-05-16 15:29:38 +02:00
hlhr202
bf5a08dd1d fix: fmt 2024-05-16 14:10:03 +08:00
Niko
233c7eec36
Merge pull request #138 from arizhih/linux-cuda-build
fix: Can't find libcuda when build with cuda feature on Linux
2024-05-15 22:24:01 +00:00
arizhih
f6826200fc Update whisper.cpp version to 1.6.0 2024-05-15 22:59:16 +02:00
arizhih
1160b1b94e
Merge branch 'tazz4843:master' into update-whisper-cpp 2024-05-07 13:36:30 +02:00
arizhih
3f7e43252c
Merge branch 'tazz4843:master' into linux-cuda-build 2024-05-07 13:14:14 +02:00
hlhr202
cd6a633fc5 try fix metal log 2024-05-07 01:26:42 +08:00
hlhr202
a440e7cb6f try fix metal log 2024-05-07 01:14:26 +08:00
hlhr202
4bc5709e58 fix: metal 2024-05-07 00:52:33 +08:00