Skip to content

Commit

Permalink
Minor improvement in aws_polly
Browse files Browse the repository at this point in the history
  • Loading branch information
thelgason committed Mar 8, 2024
1 parent a97c224 commit f8706a6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/icespeak/voices/aws_polly.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,7 @@ def load_api_keys(self):
self._aws_client: Any = None
with AWSPollyVoice._lock:
if self._aws_client is None:
# See boto3.Session.client for arguments
self._aws_client = boto3.client(
"polly",
region_name=API_KEYS.aws.region_name.get_secret_value(),
aws_access_key_id=API_KEYS.aws.aws_access_key_id.get_secret_value(),
aws_secret_access_key=API_KEYS.aws.aws_secret_access_key.get_secret_value(),
)
self._aws_client = self._create_client(API_KEYS.aws)

@override
def text_to_speech(
Expand Down

0 comments on commit f8706a6

Please sign in to comment.