Update polly access key config to match AWS better
key_id -> access_key_id secret_key -> secret_access_keypull/1262/head
parent
751040d653
commit
f19547860b
|
@ -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"
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue