MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / print_usage

Function print_usage

kleidiai-examples/audiogen/app/audiogen.cpp:91–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static void print_usage(const char *name) {
92 fprintf(stderr,
93 "Usage: %s -m <models_base_path> -p <prompt> -t <num_threads> [-s <seed> -l <audio_len>]\n\n"
94 "Options:\n"
95 " -m <models_base_path> Path to model files\n"
96 " -p <prompt> Input prompt text (e.g., warm arpeggios on house beats 120BPM with drums effect)\n"
97 " -t <num_threads> Number of CPU threads to use\n"
98 " -s <seed> (Optional) Random seed for reproducibility. Different seeds generate different audio samples (Default: %zu)\n"
99 " -i <input_audio_path> (Optional) Add input audio file for style transfer"
100 " -x <sigma_max> (Optional) Hyper parameter to tweak noise level"
101 " -l <audio_len_sec> (Optional) Length of generated audio (Default: %zu s)\n"
102 " -n <num_steps> (Optional) Number of steps (Default: %zu)\n"
103 " -o <output_file> (Optional) Output audio file name (Default: <prompt>_<seed>.wav)\n"
104 " -h Show this help message\n",
105 name,
106 k_seed_default,
107 k_audio_len_sec_default,
108 k_num_steps_default);
109}
110
111static std::string get_filename(std::string prompt, size_t seed) {
112 // Convert spaces to underscores

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected