Professional Documents
Culture Documents
Voice Assisent
Voice Assisent
# assign voice
voices = engine.getProperty('voices')
# changing index changes voices but only 0 and 1 are working here
engine.setProperty('voice', voices[1].id)
# run tool
engine.runAndWait()
print("")
# import required module
import pyttsx3
import os
# driver code
# introduction
print(" =============================================== Hello World!!
================================================")
engine.say('Hello World!!')
print("")
print(" My name is Divy Shah,I make this tool With this help of tool you can open
below things.......")
print("\n (YOU CAN USE NUMBER OR YOU CAN DO CHAT LIKE 'OPEN NOTEBOOK' etc....)")
print("\n ============================================ Welcome To My Tools
============================================")
pyttsx3.speak("Welcome to my tools")
print("")
print("")
while True:
# take input
print(" CHAT WITH ME WITH YOUR REQUIREMENTS : ", end='')
p = input()
p = p.upper()
print(p)