MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / build_preparation_request

Function build_preparation_request

src/framework/runtime/session.cpp:430–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 };
429 return request;
430}
431
432SessionPreparationRequest build_preparation_request(const TaskRequest & request) {
433 SessionPreparationRequest prep;
434 prep.options = request.options;
435 // ⚠ CARRY THE LIST OPTIONS TOO. Preparation decides how the graphs are sized, and a family
436 // whose work depends on a list option would otherwise size itself for a different request
437 // than the one run() is handed. For kokoro_tts that was not merely a bad estimate: with the
438 // phonemes missing here, preparation fell back to the built-in G2P, and a Japanese request
439 // failed for want of UniDic even though the caller had supplied phonemes precisely so that
440 // the G2P would never be consulted.
441 prep.option_arrays = request.option_arrays;

Callers 15

plan_vad_audio_chunksFunction · 0.85
run_singleMethod · 0.85
mainFunction · 0.85
run_modelMethod · 0.85
run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_model_step_foreachFunction · 0.85
run_offline_batchFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected