mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 09:56:53 +00:00
Fix #23
This commit is contained in:
parent
5a74ad6527
commit
142b4f6457
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user