yell -> epiphony

This commit is contained in:
bursa-pastoris 2023-06-10 23:00:29 +02:00
parent 7b015f980b
commit a857520beb
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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"]

View File

@ -10,8 +10,8 @@ Language:
ChristmasCooldown: 5
EasterCooldown: 5
Proxy:
YellLang:
YellSpeed: 120
EpiphonyLang:
EpiphonySpeed: 120
[Resources]
CitArchive: resources/citations/citations.csv