MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / speaker_from_file

Function speaker_from_file

subprojects/llama.cpp/tools/tts/tts.cpp:466–475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466static json speaker_from_file(const std::string & speaker_file) {
467 std::ifstream file(speaker_file);
468 if (!file) {
469 LOG_ERR("%s: Failed to open file '%s' for reading\n", __func__, speaker_file.c_str());
470 return json();
471 }
472
473 json speaker = json::parse(file);
474 return speaker;
475}
476
477static outetts_version get_tts_version(llama_model *model, json speaker = json::object()) {
478 if (speaker.contains("version")) {

Callers 1

mainFunction · 0.85

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected