![]() ![]() The entire program we will use (call) this function to produce speech from text. We have created this ‘t2s(text)’ function. Object creation of JarvisAI as per as documentation– obj = JarvisAI.JarvisAssistant() Code- Step 1 (Imports and Create Object of JarvisAI)- import JarvisAI import re import pprint import random Read on GitHub or Pypi’s Jarvis_AI official page for more information. The above methods are very clear by their name itself. res = tell_me_joke(language=’en’, category=’neutral’).res = obj.predict_faces(class_name=None, img_height=128, img_width=128, haarcascade_path=’haarcascade/haarcascade_frontalface_default.xml’, eyecascade_path=’haarcascade/haarcascade_eye.xml’, model_path=’model’, color_mode=False).res = obj.face_recognition_train(data_dir=’datasets’, batch_size=32, img_height=128, img_width=128, epochs=10, model_path=’model’, pretrained=None, base_model_trainable=False).res = obj.datasetcreate(dataset_path=’datasets’, class_name=’Demo’, haarcascade_path=’haarcascade/haarcascade_frontalface_default.xml’, eyecascade_path=’haarcascade/haarcascade_eye.xml’, eye_detect=False, save_face_only=True, no_of_samples=100, width=128, height=128, color_mode=False).res = obj.text2speech(text=’Hello, how are you?’, lang=’en’).res = obj.tell_me(topic=’India’, sentences=1).res = obj.send_mail(sender_email=None, sender_password=None, receiver_email=None, msg=”Hello”).These are the names of available functions you can use after creating JarvisAI’s object- import JarvisAI obj = JarvisAI.JarvisAssistant() response = obj.mic_input() The functionality is cleared by methods name. Usage and Features-Īfter installing the library you can import the module- import JarvisAI obj = JarvisAI.JarvisAssistant() response = obj.mic_input() print(response)Ĭheck this script for more examples- Available Methods. It provides the basic functionality of any virtual assistant. This is the latest virtual assistant module, created by me. The code and functions may be update on future so stay tuned with me on YouTube and this project official page.Sharing and Subscribe me on YouTube would be appreciated.Required links and packages are mentioned below.Demo YouTube video and code YouTube video is also available on my channel.All the codes is available on my GitHub.So let’s create our own virtual assistant. The response generated by the assistant will display on the console or as a speech via the speaker.įuture Updates: Selfie Click, Chat more like humans, etc. You can interact with your laptop’s microphone/console. Face Recognition (need to train ML model). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |