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.take_input("Enter Year :")
display_cli_calendar(int(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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file JenAssistant-1.0.0.tar.gz.
File metadata
- Download URL: JenAssistant-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3274f61acd41515c98c9eef6146ae9d02ddda1b3783ac354b35a450a850a2ee6
|
|
| MD5 |
5d0ad37c677613b48e43d3869841804a
|
|
| BLAKE2b-256 |
30b8751e3e5e13325cfcce2aad2ea0b814f4c7fbb37a0728a2e11c6ac1d595a1
|
File details
Details for the file JenAssistant-1.0.0-py3-none-any.whl.
File metadata
- Download URL: JenAssistant-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ec4a5055b9d7050a1d0603999a7beef3102681a7198d92d1b0ceac408f74f7
|
|
| MD5 |
81d23356b8ca53439603e700882c7fce
|
|
| BLAKE2b-256 |
054904009368b9c52aa32a37c29b89de32eec17d9d30216465808fc3f542f139
|