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

Function parse_server_backend

app/server/config.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45} // namespace
46
47engine::core::BackendType parse_server_backend(const std::string & value) {
48 auto backend = minitts::cli::parse_backend(value);
49 if (backend == engine::core::BackendType::BestAvailable) {
50 throw std::runtime_error("unsupported server backend: " + value);
51 }
52 return backend;
53}
54
55ServerConfig load_server_config(const std::filesystem::path & path) {
56 const auto root = engine::io::json::parse_file(path);

Callers 2

load_server_configFunction · 0.85
mainFunction · 0.85

Calls 1

parse_backendFunction · 0.50

Tested by

no test coverage detected