| 45 | } // namespace |
| 46 | |
| 47 | engine::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 | |
| 55 | ServerConfig load_server_config(const std::filesystem::path & path) { |
| 56 | const auto root = engine::io::json::parse_file(path); |
no test coverage detected