whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Cancelling a transcript

Open szeidner opened this issue 1 year ago • 0 comments

Is there a way to cancel a transcript that is in progress programmatically? Calling whisper_free results in the following error:

ggml_new_tensor_impl: not enough space in the context's memory pool
Assertion failed: (false), function ggml_new_tensor_impl, file ggml.c, line 1426.

I wondered if there was some way built-in to notify the main loop to stop running. For the time being, I added a cancel boolean flag to whisper_ctx that the main loop checks and ends if it's enabled. This works, but I just wondered if there was possibly a built in way to do this. Thank you!

szeidner avatar Nov 27 '22 13:11 szeidner