| 6 | #include "ggml.h" |
| 7 | |
| 8 | void 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 | |
| 19 | int main(int argc, char **argv) { |
| 20 | ggml_time_init(); |
nothing calls this directly
no outgoing calls
no test coverage detected