diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9dc92ea..60a5e3e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,11 @@ jobs: make make stream + - name: Test + run: | + bash whisper.cpp/models/download-ggml-model.sh tiny + ./main samples/jfk.wav -m models/ggml-tiny.bin + macOS-latest: runs-on: macOS-latest diff --git a/examples/main/main.cpp b/examples/main/main.cpp index ecb4bdd..ce8b484 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -259,7 +259,6 @@ void whisper_print_segment_callback(struct whisper_context * ctx, int n_new, voi printf("[%s --> %s] %s%s\n", to_timestamp(t0).c_str(), to_timestamp(t1).c_str(), speaker.c_str(), text); } - fflush(stdout); } } }