Skip to content

Commit 3163090

Browse files
authored
server : pass max-len argument to the server (#1574)
This commit fixes the missing parameter binding for max-len between the input arguments and wparams.
1 parent f0efd02 commit 3163090

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ int main(int argc, char ** argv) {
589589
wparams.duration_ms = params.duration_ms;
590590

591591
wparams.thold_pt = params.word_thold;
592+
wparams.max_len = params.max_len == 0 ? 60 : params.max_len;
592593
wparams.split_on_word = params.split_on_word;
593594

594595
wparams.speed_up = params.speed_up;

0 commit comments

Comments
 (0)