Skip to content

Commit

Permalink
Merge pull request #790 from ShiromiyaG/fix-arguments-2
Browse files Browse the repository at this point in the history
Fix infer arguments
  • Loading branch information
blaisewf authored Oct 7, 2024
2 parents 8e98824 + ed4074a commit e866b2a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions core.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@ def parse_arguments():
choices=[True, False],
help=post_process_description,
default=False,
required=False,
)
reverb_description = "Apply reverb effect to the output audio."
infer_parser.add_argument(
Expand All @@ -901,6 +902,7 @@ def parse_arguments():
choices=[True, False],
help=reverb_description,
default=False,
required=False,
)

pitch_shift_description = "Apply pitch shifting effect to the output audio."
Expand All @@ -910,6 +912,7 @@ def parse_arguments():
choices=[True, False],
help=pitch_shift_description,
default=False,
required=False,
)

limiter_description = "Apply limiter effect to the output audio."
Expand All @@ -919,6 +922,7 @@ def parse_arguments():
choices=[True, False],
help=limiter_description,
default=False,
required=False,
)

gain_description = "Apply gain effect to the output audio."
Expand All @@ -928,6 +932,7 @@ def parse_arguments():
choices=[True, False],
help=gain_description,
default=False,
required=False,
)

distortion_description = "Apply distortion effect to the output audio."
Expand All @@ -937,6 +942,7 @@ def parse_arguments():
choices=[True, False],
help=distortion_description,
default=False,
required=False,
)

chorus_description = "Apply chorus effect to the output audio."
Expand All @@ -946,6 +952,7 @@ def parse_arguments():
choices=[True, False],
help=chorus_description,
default=False,
required=False,
)

bitcrush_description = "Apply bitcrush effect to the output audio."
Expand All @@ -955,6 +962,7 @@ def parse_arguments():
choices=[True, False],
help=bitcrush_description,
default=False,
required=False,
)

clipping_description = "Apply clipping effect to the output audio."
Expand All @@ -964,6 +972,7 @@ def parse_arguments():
choices=[True, False],
help=clipping_description,
default=False,
required=False,
)

compressor_description = "Apply compressor effect to the output audio."
Expand All @@ -973,6 +982,7 @@ def parse_arguments():
choices=[True, False],
help=compressor_description,
default=False,
required=False,
)

delay_description = "Apply delay effect to the output audio."
Expand All @@ -982,6 +992,7 @@ def parse_arguments():
choices=[True, False],
help=delay_description,
default=False,
required=False,
)

reverb_room_size_description = "Control the room size of the reverb effect. Higher values result in a larger room size."
Expand Down Expand Up @@ -1390,13 +1401,15 @@ def parse_arguments():
choices=[True, False],
help=post_process_description,
default=False,
required=False,
)
batch_infer_parser.add_argument(
"--reverb",
type=lambda x: bool(strtobool(x)),
choices=[True, False],
help=reverb_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1405,6 +1418,7 @@ def parse_arguments():
choices=[True, False],
help=pitch_shift_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1413,6 +1427,7 @@ def parse_arguments():
choices=[True, False],
help=limiter_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1421,6 +1436,7 @@ def parse_arguments():
choices=[True, False],
help=gain_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1429,6 +1445,7 @@ def parse_arguments():
choices=[True, False],
help=distortion_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1437,6 +1454,7 @@ def parse_arguments():
choices=[True, False],
help=chorus_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1445,6 +1463,7 @@ def parse_arguments():
choices=[True, False],
help=bitcrush_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1453,6 +1472,7 @@ def parse_arguments():
choices=[True, False],
help=clipping_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1461,6 +1481,7 @@ def parse_arguments():
choices=[True, False],
help=compressor_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand All @@ -1469,6 +1490,7 @@ def parse_arguments():
choices=[True, False],
help=delay_description,
default=False,
required=False,
)

batch_infer_parser.add_argument(
Expand Down

0 comments on commit e866b2a

Please sign in to comment.