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

Function arg_value

tests/chatterbox/chatterbox_warm_bench.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23constexpr const char * kDefaultWarmupText = "This is a fixed warmup request for Chatterbox voice cloning.";
24
25std::string arg_value(int argc, char ** argv, const std::string & name, const std::string & fallback) {
26 for (int i = 1; i + 1 < argc; ++i) {
27 if (argv[i] == name) {
28 return argv[i + 1];
29 }
30 }
31 return fallback;
32}
33
34std::vector<std::string> arg_values(int argc, char ** argv, const std::string & name) {
35 std::vector<std::string> values;

Callers 4

int_argFunction · 0.70
float_argFunction · 0.70
bool_argFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected