Skip to content

Commit 1496d8d

Browse files
committed
llama-tts : add -o option
* arg.cpp : refactored if/else block braces
1 parent b69a721 commit 1496d8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

common/arg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,13 +1870,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
18701870
// depending on the example program...
18711871
const char * default_out_file;
18721872

1873-
if (ex == LLAMA_EXAMPLE_EXPORT_LORA)
1873+
if (ex == LLAMA_EXAMPLE_EXPORT_LORA) {
18741874
default_out_file = params.lora_outfile.c_str();
1875-
else if (ex == LLAMA_EXAMPLE_CVECTOR_GENERATOR)
1875+
} else if (ex == LLAMA_EXAMPLE_CVECTOR_GENERATOR) {
18761876
default_out_file = params.cvector_outfile.c_str();
1877-
else if (ex == LLAMA_EXAMPLE_TTS)
1877+
} else if (ex == LLAMA_EXAMPLE_TTS) {
18781878
default_out_file = params.ttss_outfile.c_str();
1879-
else // currently coded as "imatrix.dat", see common.h
1879+
} else // currently coded as "imatrix.dat", see common.h
18801880
default_out_file = params.out_file.c_str();
18811881

18821882
add_opt(common_arg(

examples/tts/tts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ lovely<|t_0.56|><|code_start|><|634|><|596|><|1766|><|1556|><|1306|><|1285|><|14
10781078
if (save_wav16(params.out_file, audio, n_sr)) {
10791079
LOG_INF("%s: audio written to file '%s'\n", __func__, params.out_file.c_str());
10801080
} else {
1081-
retval=ENOENT;
1081+
retval = ENOENT;
10821082
LOG_ERR("Check path exists, directory write permissions, free disk space.\n");
10831083
}
10841084

0 commit comments

Comments
 (0)