项目作者: Sreyas-Sreelal

项目描述 :
Voice assistant in Python
高级语言: Python
项目地址: git://github.com/Sreyas-Sreelal/Voca.git
创建时间: 2019-01-09T09:03:25Z
项目社区:https://github.com/Sreyas-Sreelal/Voca

开源协议:GNU General Public License v3.0

下载


Voca

Voca is a voice assistant written in Python.I just made this project for fun and to automate some tasks in my machine.
It uses trained aiml files of ALICE bot as the basis for simple intelligence.I’m hoping to improve this as i get some time and yes,any kind of contribution to this project is welcome.

Running

To run Voca just run the main.py file

  1. python main.py

and speak

You can also import the project as a package and use the run method to initialize Voca.

Adding commands

You can easily add custom command.Just add a new file
For example

cmd_ping.py

  1. def execute(voca_say,listen_and_understand,heard=""):
  2. voca_say("pong")

contains a command ping to which Voca replies with “pong”
Register this command by adding following in cmds.py

cmds.py

  1. from commands import *
  2. voca_commands={
  3. "ping":cmd_ping,
  4. }

Please note that this project is still in WIP status.