Refactoring

This commit is contained in:
Yuta Hayashibe 2022-10-02 21:36:26 +09:00
parent e06067dbb9
commit 9d1ef4e0cf

View file

@ -133,13 +133,6 @@ def get_opts() -> argparse.Namespace:
type=int,
default=5,
)
group_ctx.add_argument(
"--num_block",
"-n",
type=int,
default=160,
help="Number of operation unit",
)
group_ctx.add_argument(
"--temperature",
"-t",
@ -151,24 +144,31 @@ def get_opts() -> argparse.Namespace:
"--allow-padding",
action="store_true",
)
group_ctx.add_argument(
"--no-progress",
action="store_true",
)
group_ctx.add_argument(
"--no-vad",
action="store_true",
)
group_ctx.add_argument(
"--mode",
choices=[v.value for v in Mode],
)
group_misc = parser.add_argument_group("Other options")
group_misc.add_argument(
"--mic",
help="Set MIC device",
)
group_misc.add_argument(
"--num_block",
"-n",
type=int,
default=160,
help="Number of operation unit",
)
group_misc.add_argument(
"--no-vad",
action="store_true",
)
group_misc.add_argument(
"--mode",
choices=[v.value for v in Mode],
)
group_misc.add_argument(
"--no-progress",
action="store_true",
)
group_misc.add_argument(
"--show-devices",
action="store_true",