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.
This commit is contained in:
Oleg Sidorov 2023-12-05 22:01:45 +01:00 committed by GitHub
parent f0efd0202d
commit 3163090d89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,6 +589,7 @@ int main(int argc, char ** argv) {
wparams.duration_ms = params.duration_ms; wparams.duration_ms = params.duration_ms;
wparams.thold_pt = params.word_thold; wparams.thold_pt = params.word_thold;
wparams.max_len = params.max_len == 0 ? 60 : params.max_len;
wparams.split_on_word = params.split_on_word; wparams.split_on_word = params.split_on_word;
wparams.speed_up = params.speed_up; wparams.speed_up = params.speed_up;