MCPcopy Create free account
hub / github.com/PABannier/bark.cpp / bark_print_progress_callback

Function bark_print_progress_callback

examples/main/main.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "ggml.h"
7
8void bark_print_progress_callback(struct bark_context *bctx, enum bark_encoding_step step, int progress, void *user_data) {
9 if (step == bark_encoding_step::SEMANTIC) {
10 printf("\rGenerating semantic tokens... %d%%", progress);
11 } else if (step == bark_encoding_step::COARSE) {
12 printf("\rGenerating coarse tokens... %d%%", progress);
13 } else if (step == bark_encoding_step::FINE) {
14 printf("\rGenerating fine tokens... %d%%", progress);
15 }
16 fflush(stdout);
17}
18
19int main(int argc, char **argv) {
20 ggml_time_init();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected