|
|
@ -56,6 +56,11 @@ int main(int argc, char ** argv) {
|
|
|
|
|
|
|
|
|
|
|
|
struct whisper_context * ctx = whisper_init(params.model.c_str());
|
|
|
|
struct whisper_context * ctx = whisper_init(params.model.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
|
|
|
|
fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", params.n_threads, std::thread::hardware_concurrency(), whisper_print_system_info());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ctx == nullptr) {
|
|
|
|
if (ctx == nullptr) {
|
|
|
|
fprintf(stderr, "error: failed to initialize whisper context\n");
|
|
|
|
fprintf(stderr, "error: failed to initialize whisper context\n");
|
|
|
|
return 2;
|
|
|
|
return 2;
|
|
|
@ -74,9 +79,6 @@ int main(int argc, char ** argv) {
|
|
|
|
whisper_print_timings(ctx);
|
|
|
|
whisper_print_timings(ctx);
|
|
|
|
whisper_free(ctx);
|
|
|
|
whisper_free(ctx);
|
|
|
|
|
|
|
|
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
|
|
|
|
fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", params.n_threads, std::thread::hardware_concurrency(), whisper_print_system_info());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
fprintf(stderr, "If you wish, you can submit these results here:\n");
|
|
|
|
fprintf(stderr, "If you wish, you can submit these results here:\n");
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|
fprintf(stderr, "\n");
|
|
|
|