mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-25 02:11:00 +00:00
Refactoring
This commit is contained in:
parent
e06067dbb9
commit
9d1ef4e0cf
1 changed files with 19 additions and 19 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue