This commit is contained in:
rany2 2022-11-18 13:14:27 +02:00
parent 5a74ad6527
commit 142b4f6457
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[metadata]
name = edge-tts
version = 5.0.6
version = 5.0.7
author = rany
author_email = ranygh@riseup.net
description = Microsoft Edge's TTS

View File

@ -120,7 +120,7 @@ async def _main():
)
parser.add_argument(
"--write-subtitles",
help="instead of stderr, send subtitle output to provided file",
help="instead of stderr, send subtitle output to provided file (implies boundary-type is 1)",
)
parser.add_argument(
"--proxy",
@ -132,6 +132,9 @@ async def _main():
await _list_voices(args.proxy)
sys.exit(0)
if args.write_subtitles and args.boundary_type == 0:
args.boundary_type = 1
if args.text is not None or args.file is not None:
if args.file is not None:
# we need to use sys.stdin.read() because some devices