Virtual Assistant
import androidhelper
import datetime
time=str(datetime.datetime.now())
android=androidhelper.Android()
android.ttsSpeak("I am Ramu Kaka Tell me what to do")
android.ttsSpeak("Hope you are fine Sir")
task=android.dialogGetInput("Hello I am Your Assistant","Tell me What to do")
if "time" in task:
android.ttsSpeak("Sir The time is")
android.ttsSpeak(time)
if "on" in task:
android.toggleBluetoothState(True)
if "off" in task:
android.toggleBluetoothState(False)
if "wish" in task:
android.ttsSpeak("Mr.Tirthesh I am glad to have the master like you You are a part time coder and a student it is a great thing")
if "master" in task:
android.ttsSpeak("My master is Tirthesh Jain")
if "repeat" in task:
while True:
android.ttsSpeak("Darshko you are late subscribe the channel now")
android.ttsSpeak("A request from ramu kaka ")
else:
android.ttsSpeak("Sir I am going to sleep take your care")
#Lets Run the code
#Ramu kaka assist me please
#lets get assisted
#just copy paste this code and run
#your assistant is waiting
Comments
Post a Comment