“”"
import pyttsx3 as pyt
engine = pyt.init()
voices = engine.getProperty(‘voices’) #getting details of current voice
engine.setProperty(‘voice’, voices[0].id) #changing index, changes voices. o for male
#engine.say(“ben olric size nası yardımcı olabilirim efendimiz”)
#engine.say(“hi I’m Olric”)
print(“Hi! I’m Olric”)
engine.say(“hi I’m Olric\n\n”)
engine.runAndWait()
while True:
şey = input("")
şey = şey.lower()
şey = şey.replace(" ", "").replace(" ", "")
if şey=="adın ne" or şey=="senin adın ne":
engine.say("Olric")
print("olric")
engine.runAndWait()
if şey=="yaşın kaç" or şey=="yaş kaç" or şey=="kaç yılında doğdun" or şey=="ne zaman doğdun":
engine.say("2021 de doğdum")
print("ı was born 20 april 2021, ı'm 0 years old")
engine.runAndWait()
elif "calculator" in şey or şey == "calculator" :
print("Calculator is opening")
engine.say("calculator is opening")
engine.runAndWait()
import hesapmakinesi as hs
print("*"*100)
elif şey=="gününsözü" or "gününsözü" in şey or "güzelsöz" in şey or "anlamlısöz" in şey:
print("Neden hayalsin Olric?\nSiz gerçeksinizde noluyor efendimiz.")
elif şey=="game" or "openthegame" in şey or şey=="ıwanttogame":
engine.say("opens")
print("opens")
engine.runAndWait()
import adamasmaca
elif şey=="youtube" or "opentheyoutube" in şey:
import os
engine.say("youtube is opening")
print("youtube is opening")
engine.runAndWait()
os.system(r"C:\Users\toshiba\Desktop\YouTube.lnk")
continue
elif şey=="yazbel" or "yazbel" in şey:
import webbrowser as wb
engine.say("opens")
print("opens")
engine.runAndWait()
url = "https://yazbel.com"
wb.open(url)
else:
import webbrowser as wb
url = f"https://www.google.com/search?q={şey}&oq=gs&aqs=chrome..69i57l2j69i59l2j69i61j69i60l3.519j0j4&sourceid=chrome&ie=UTF-8"
wb.open(url)
“”"
herkese merhaba!
ben deneme amaçlı yukarıdaki gibi bir kod yazdım fakat “import error” hatası alıyorum hata aşağıdaki şekilde:
ImportError: No system module ‘pywintypes’ (pywintypes39.dll)
yardımcı olursanız sevinirim