mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 01:45:02 +00:00
commit
1f04a4b238
@ -214,6 +214,7 @@ class Communicate: # pylint: disable=too-few-public-methods
|
||||
rate="+0%",
|
||||
volume="+0%",
|
||||
customspeak=False,
|
||||
proxy=None,
|
||||
): # pylint: disable=too-many-arguments, too-many-locals
|
||||
"""
|
||||
Runs the Communicate class.
|
||||
@ -273,6 +274,7 @@ class Communicate: # pylint: disable=too-few-public-methods
|
||||
compress=15,
|
||||
autoclose=True,
|
||||
autoping=True,
|
||||
proxy=proxy,
|
||||
headers={
|
||||
"Pragma": "no-cache",
|
||||
"Cache-Control": "no-cache",
|
||||
|
@ -39,6 +39,7 @@ async def _tts(args):
|
||||
args.rate,
|
||||
args.volume,
|
||||
customspeak=args.custom_ssml,
|
||||
proxy=args.proxy,
|
||||
):
|
||||
if i[2] is not None:
|
||||
if not args.write_media:
|
||||
@ -128,6 +129,10 @@ async def _main():
|
||||
"--write-subtitles",
|
||||
help="instead of stderr, send subtitle output to provided file",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--proxy",
|
||||
help="proxy",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.list_voices:
|
||||
|
Loading…
Reference in New Issue
Block a user