added --pitch back in argparse

This commit is contained in:
scott306lr 2023-08-31 05:27:23 +08:00
parent afd4ba8fee
commit 84a4a091cc

View File

@ -57,6 +57,7 @@ async def _run_tts(args: Any) -> None:
proxy=args.proxy, proxy=args.proxy,
rate=args.rate, rate=args.rate,
volume=args.volume, volume=args.volume,
pitch=args.pitch,
) )
subs: SubMaker = SubMaker() subs: SubMaker = SubMaker()
with open( with open(
@ -97,6 +98,7 @@ async def amain() -> None:
) )
parser.add_argument("--rate", help="set TTS rate. Default +0%%.", default="+0%") parser.add_argument("--rate", help="set TTS rate. Default +0%%.", default="+0%")
parser.add_argument("--volume", help="set TTS volume. Default +0%%.", default="+0%") parser.add_argument("--volume", help="set TTS volume. Default +0%%.", default="+0%")
parser.add_argument("--pitch", help="set TTS pitch. Default +0Hz.", default="+0Hz")
parser.add_argument( parser.add_argument(
"--words-in-cue", "--words-in-cue",
help="number of words in a subtitle cue. Default: 10.", help="number of words in a subtitle cue. Default: 10.",