A package which can be used for virtual assistants
Project description
JenAssistant
What is JenAssistant?
Jen is a package which has a list of different types of assistants which can help you in virtual assistant projects.
Sample Code
This is the code for making a Simple Assistant. Here it checks if the word calendar is there in the command you have provided and accordingly displays the calendar for the given year
from jen.assistant import SimpleAssistant
from jen.functions import display_cli_calendar
assistant=SimpleAssistant("Assistant")
command=input("What do you want the Assistant to Do :")
if "calendar" in command:
year=int(input("Enter Year:"))
assistant.display_response("Displaying the calendar for {}".format(year))
display_cli_calendar(year)
This is the code for making a Speech Recognising Assistant. This can recognise your speech and display the output accordingly.
from jen.assistant import SpeechRecognisingAssistant
from jen.functions import display_cli_calendar
assistant=SpeechRecognisingAssistant('Bot')
command=assistant.listen_to_the_user()
if "calendar" in command:
year=assistant.display_response("Enter Year :{}".format(input()))
display_cli_calendar(year)
Error Handling
Here if we get a PyAudio Error then import the configure module
from jen import configure
configure.configure_pyaudio()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
JenAssistant-0.0.3.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for JenAssistant-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354da02b2c96cd1fa484d939f38b340675d071f7314b827d2466b069e6a412ee |
|
MD5 | e45ecabb89cc7319266b139c35aaa101 |
|
BLAKE2b-256 | f3adcf1bdfc5e8f986a4546894b2c05c8d13824708b67dd883a26fae101098e0 |