yell -> epiphony
This commit is contained in:
parent
7b015f980b
commit
a857520beb
|
@ -384,8 +384,8 @@ async def epiphony(update, context):
|
|||
action=ChatAction.RECORD_VOICE)
|
||||
if not os.path.exists(voice_file):
|
||||
engine = pyttsx3.init()
|
||||
engine.setProperty('voice',YELLLANG)
|
||||
engine.setProperty('rate',YELLSPEED)
|
||||
engine.setProperty('voice',EPIPHONYLANG)
|
||||
engine.setProperty('rate',EPIPHONYSPEED)
|
||||
engine.save_to_file(sentence,voice_file)
|
||||
engine.runAndWait()
|
||||
time.sleep(1) # Workaround to prevent ReferenceError due to using
|
||||
|
|
|
@ -16,8 +16,8 @@ LANG = config["Settings"]["Language"]
|
|||
CHRISTMASCOOLDOWN = timedelta(seconds=int(config["Settings"]["ChristmasCooldown"]))
|
||||
EASTERCOOLDOWN = timedelta(seconds=int(config["Settings"]["EasterCooldown"]))
|
||||
PROXY = config["Settings"]["Proxy"]
|
||||
YELLLANG = config['Settings']['YellLang']
|
||||
YELLSPEED = config['Settings']['YellSpeed']
|
||||
EPIPHONYLANG = config['Settings']['EpiphonyLang']
|
||||
EPIPHONYSPEED = config['Settings']['EpiphonySpeed']
|
||||
|
||||
# Resources
|
||||
CITARCHIVE = config["Resources"]["CitArchive"]
|
||||
|
|
|
@ -10,8 +10,8 @@ Language:
|
|||
ChristmasCooldown: 5
|
||||
EasterCooldown: 5
|
||||
Proxy:
|
||||
YellLang:
|
||||
YellSpeed: 120
|
||||
EpiphonyLang:
|
||||
EpiphonySpeed: 120
|
||||
|
||||
[Resources]
|
||||
CitArchive: resources/citations/citations.csv
|
||||
|
|
Loading…
Reference in New Issue