Update polly access key config to match AWS better

key_id -> access_key_id
secret_key -> secret_access_key
pull/1262/head
Åke Forslund 2020-04-19 17:53:02 +02:00
parent 751040d653
commit f19547860b
2 changed files with 4 additions and 4 deletions

View File

@ -292,8 +292,8 @@
"polly": { "polly": {
"voice": "Matthew", "voice": "Matthew",
"region": "us-east-1", "region": "us-east-1",
"key_id": "", "access_key_id": "",
"secret_key": "" "secret_access_key": ""
}, },
"mimic": { "mimic": {
"voice": "ap" "voice": "ap"

View File

@ -31,8 +31,8 @@ class PollyTTS(TTS):
"mark"]) "mark"])
self.voice = self.config.get("voice", "Matthew") self.voice = self.config.get("voice", "Matthew")
self.key_id = self.config.get("key_id", '') self.key_id = self.config.get("access_key_id", '')
self.key = self.config.get("secret_key", '') self.key = self.config.get("secret_access_key", '')
self.region = self.config.get("region", 'us-east-1') self.region = self.config.get("region", 'us-east-1')
self.polly = boto3.Session(aws_access_key_id=self.key_id, self.polly = boto3.Session(aws_access_key_id=self.key_id,
aws_secret_access_key=self.key, aws_secret_access_key=self.key,