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