Voice activated macros made in rust.
Does not work in-game -- I suspect nProtect GameGuard is not allowing for keypresses in Helldivers 2.
There are a lot of firsts with this project:
- first time using rust
- first time using whisper ai
- first time handling audio data
Currently development has been only done on windows so most likely won't work on linux or other operation systems.
Goal is to at some point make it cross-platform.
- Rust
- this currently requires rust nightly, which can be installed with
rustup install nightly
- this currently requires rust nightly, which can be installed with
- Download and install your preferred Whisper models
- development has been done using
base.enmodel
- development has been done using
accuracy has been really good with
medium.enbut ~12 second wait time is not applicable for this use case
Follow whisper-rs build guide
Path for CMAKE could be similar to
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin
Make sure you have toolkits installed required by winres.
Since this application requires uiAccess the application should be run under "Program Files".
Install signtool, it is part of Windows SDK.
If you have Visual Studio installed, you might already have it installed, just not on path env variables
-- C:\Program Files (x86)\Windows Kits\10\App Certification Kit
Whatever certificate used by signtool must also be trusted by the system
this can be done my installing the certificate when viewing the
Digital Signaturesunder .exe properties
Currently I do not have a way to sign this application with an appropriate certificate.
should probably look into MakeCert
Then again winres and certificate part could be removed as I only dabbled in it in hopes that it would allow me to send inputs to Helldivers 2.
enigo notifies me with
simulating input failed: (not all input events were sent. they may have been blocked by UIPI)
enigo is not included in the
cargo.toml, I was just messing about with different libraries for keyboard inputs
Then build with
cargo build --releaseTo build to output folder [build.sh] can be used.
This builds the release version of project and copies the following there
profiles/(the entire folder)log4rs.ymlggml-base.en.bin(whisper model).
You can run this application with:
cargo +nightly runTo get information about available command arguments you can do the following:
cargo +nightly run --release -- --helpor by running the binary with --help argument.
Example for windows:
vox-strike.exe --help