fixed capitalization issue
This commit is contained in:
1 parent
c3279f7995
commit
045d7b2b01
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ MAX_COMMENT_LENGTH="500"
|
||||
OPACITY="1"
|
||||
|
||||
# see TTSwrapper.py for all valid options
|
||||
VOICE="" # e.g. en_us_002
|
||||
VOICE="Matthew" # e.g. en_us_002
|
||||
TTsChoice="polly" # todo add docs
|
||||
|
||||
# IN-PROGRESS - not yet implemented
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ class POLLY:
|
||||
else:
|
||||
if not os.getenv('VOICE'):
|
||||
return ValueError('Please set the environment variable VOICE to a valid voice. options are: {}'.format(voices))
|
||||
voice = (os.getenv("VOICE"))
|
||||
voice = str(os.getenv("VOICE")).capitalize()
|
||||
body = {'voice': voice, 'text': req_text}
|
||||
response = requests.post(self.url, data=body)
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user