Add --max-text-length to mimic3-server

This commit is contained in:
Michael Hansen 2022-05-10 11:01:46 -04:00
commit 05795c5d82
3 changed files with 18 additions and 2 deletions

View file

@ -81,6 +81,11 @@ def get_args(argv=None) -> argparse.Namespace:
default=1,
help="Number of synthesis threads (default: 1)",
)
parser.add_argument(
"--max-text-length",
type=int,
help="Maximum length of input text to process (default: no limit)",
)
parser.add_argument(
"--debug", action="store_true", help="Print DEBUG messages to console"
)