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