tazz4843 / whisper-rs

Rust bindings to https://github.com/ggerganov/whisper.cpp
The Unlicense
607 stars 105 forks source link

add safe set_abort_callback #131

Closed thewh1teagle closed 2 months ago

thewh1teagle commented 2 months ago

Whisper.cpp provides a way to abort the transcription within abort callback (which returns boolean) Currently there's no safe bindings for using it in whisper-rs

Update: I added it but I can't use both progress_callback and abort_callback, if I use both then only one of them will be called.