自动化的python包
tuesda的Python项目详细描述
星期二
你可以通过你的声音轻松地自动调节和控制系统的大部分功能。 通过使用这个包,您可以轻松地构建类似jarvis的程序,而不必考虑您的编码知识。 使用简单的语音命令。
要求
在安装软件包之前,您必须遵循以下步骤:
1:安装Microsoft可再发行软件
MicrosoftRedistributable根据系统选择版本。
2:安装Visual Studio生成工具C++2015或更高版本
visual studio build tools c++ 2015并且应该有windows 10
3:根据您的系统下载Geckodriver版本
geckodriver。 在python文件夹或路径中粘贴和提取文件。
4:根据您的系统下载chromedriver版本
chromedriver。 在python文件夹或路径中粘贴和提取文件。
5:根据您的python版本下载wheel版本
wheel。 将此控制盘文件粘贴到项目文件夹中。
6:允许访问不太安全的应用程序
lesssecureapps。 允许吧。
安装
使用包管理器pip安装星期二。
# step 1: Python should be istalled in "C:\Folder" location#step 2: Python interpreter should be installed in "C:\new folder" location #step 3: Project should be located in "C:\name of project" location# step 4: Paste the downloaded file in your project folder and in python interpretor use "pip install nameofthewheelfile"
说话
fromtuesdayimportspeechspeech.speak("hello")#speak function
语音搜索
fromtuesdayimportsearchsearch.google()
交互式语音节目
通过Gmail发送电子邮件
您可以用语音发送邮件
fromtuesdayimportsendmailsendmail.send()
从下一个更新邮件也可以通过其他电子邮件平台发送, 但现在只限于Gmail。
贾维斯结构
if__name__=='__main__':speech.speak("hello my name is tuesday")speech.intro()whileTrue:comm=speech.takecommand().lower()if"open a website"incomm:websites.Open(".com")#use capital 'Open'elif"google"incomm:search.google()elif"play youtube"incomm:search.youtubeplay()elif"search youtube"incomm:search.youtubesearch()elif"open facebook by mail"incomm:social.facebookemail()elif"open gmail"incomm:social.gmail()elif"send a mail"incomm:sendmail.send()elif"tuesday stop"incomm:sys.exit()
更多命令可用,请尝试浏览它们。 下一次更新将包含更多命令。 谢谢您。