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

Function bark_forward_eval

bark.cpp:2161–2178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159}
2160
2161static bool bark_forward_eval(struct bark_context* bctx, int n_threads) {
2162 if (!bark_forward_text_encoder(bctx, n_threads)) {
2163 fprintf(stderr, "%s: failed to forward text encoder\n", __func__);
2164 return false;
2165 }
2166
2167 if (!bark_forward_coarse_encoder(bctx, n_threads)) {
2168 fprintf(stderr, "%s: failed to forward coarse encoder\n", __func__);
2169 return false;
2170 }
2171
2172 if (!bark_forward_fine_encoder(bctx, n_threads)) {
2173 fprintf(stderr, "%s: failed to forward fine encoder\n", __func__);
2174 return false;
2175 }
2176
2177 return true;
2178}
2179
2180bool bark_generate_audio(struct bark_context* bctx, const char* text, int n_threads) {
2181 if (!bctx) {

Callers 1

bark_generate_audioFunction · 0.70

Calls 3

Tested by

no test coverage detected