add proxy

This commit is contained in:
zhisenyang
2022-04-24 16:58:01 +08:00
parent 393233ecf9
commit 863c545f9a
2 changed files with 7 additions and 0 deletions

View File

@@ -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",