whisper.wasm : do not block page while processing (close #86)

This commit is contained in:
Georgi Gerganov
2022-11-25 23:07:42 +02:00
parent 0f619b52ce
commit be16dfa038
7 changed files with 47 additions and 9 deletions

View File

@ -384,6 +384,10 @@ int main(int argc, char ** argv) {
}
}
if (g_dev_id_in >= 0) {
SDL_CloseAudioDevice(g_dev_id_in);
}
whisper_print_timings(ctx);
whisper_free(ctx);