mirror of
https://github.com/NovaOSS/violet.git
synced 2024-11-25 16:44:00 +01:00
22 lines
355 B
Python
22 lines
355 B
Python
import sys
|
|
import colorama
|
|
import pyttsx3
|
|
|
|
import violet
|
|
|
|
colorama.init(autoreset=True)
|
|
engine = pyttsx3.init()
|
|
|
|
while True:
|
|
try:
|
|
prompt = input(colorama.Fore.BLUE)
|
|
|
|
except KeyboardInterrupt:
|
|
sys.exit(0)
|
|
|
|
answer = violet.respond(prompt)
|
|
print(answer['colored'])
|
|
|
|
engine.say(answer['plain'])
|
|
engine.runAndWait()
|