From 3bc505659028415b9141e4ca5966a4bfdeaf36ad Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 25 Apr 2023 13:52:25 +0000 Subject: automatic import of python-jarvisai --- python-jarvisai.spec | 353 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 280 insertions(+), 73 deletions(-) (limited to 'python-jarvisai.spec') diff --git a/python-jarvisai.spec b/python-jarvisai.spec index 6afc93e..f69cc87 100644 --- a/python-jarvisai.spec +++ b/python-jarvisai.spec @@ -1,11 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-JarvisAI -Version: 4.7 +Version: 4.8 Release: 1 Summary: JarvisAI is python library to build your own AI virtual assistant with natural language processing. License: MIT License URL: https://github.com/Dipeshpal/Jarvis_AI -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/28/da/805fc2b6451da8d036783b9fe7f419d25ef1128912df16c9495cf2df0a2f/JarvisAI-4.7.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a6/11/49c0954223feb2e055f4e3ba92045a5c1e6cb8d0d191e6e0dae55fb98dc5/JarvisAI-4.8.tar.gz BuildArch: noarch Requires: python3-numpy @@ -80,6 +80,11 @@ What is our premium plan? ## YouTube Tutorial- Click on the image below to watch the tutorial on YouTube- + +**Tutorial Latest-** + +[![JarvisAI Tutorial 1](https://img.youtube.com/vi/hPE-kdRmYf8/0.jpg)](https://www.youtube.com/watch?v=hPE-kdRmYf8) + **Tutorial 1-** @@ -160,22 +165,23 @@ The JarvisAI’s architecture is divided into two parts. You need only this piece of code- - def custom_function(*args, **kwargs): + import JarvisAI + + def custom_function(*args, **kwargs): command = kwargs.get('query') entities = kwargs.get('entities') print(entities) # write your code here to do something with the command # perform some tasks # return is optional return command + ' Executed' - - - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') - # add_action("general", custom_function) # OPTIONAL - jarvis.start() - + + + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') + JarvisAI.add_action('custom_function', custom_function) + jarvis.start() ### 4.3. **What's now?** @@ -184,10 +190,28 @@ The JarvisAI’s architecture is divided into two parts. You can configure `input_mechanism` and `output_mechanism` parameter for voice input/output or text input/output. ### 4.4. Let's understand the Parameters- + +For text input- + + input_mechanism='text' + +For voice input- + + input_mechanism='voice' + +For text output- + + output_mechanism='text' + +For voice output- + + output_mechanism='voice' + +For voice and text output- + + output_mechanism='both' - ```bash :param input_method: (object) method to get input from user :param output_method: (object) method to give output to user :param api_key: (str) [Default ''] api key to use JarvisAI get it from http://jarvis-ai-api.herokuapp.com :param detect_wake_word: (bool) [Default True] detect wake word or not :param wake_word_detection_method: (object) [Default None] method to detect wake word :param google_speech_recognition_input_lang: (str) [Default 'en'] language of the input Check supported languages here: https://cloud.google.com/speech-to-text/docs/languages :param google_speech_recognition_key: (str) [Default None] api key to use Google Speech API :param google_speech_recognition_duration_listening: (int) [Default 5] duration of the listening - READ MORE: Google Speech API (Pricing and Key) at: https://cloud.google.com/speech-to-text -``` + ## 5. What it can do (Features it supports)- 1. Currently, it supports only english language @@ -233,10 +257,10 @@ These are below supported intent that AI can handle, you can ask in natural lang You can set below parameter while creating object of JarvisAI- - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') 1. **For text input-**' @@ -252,7 +276,7 @@ You can set below parameter while creating object of JarvisAI- 4. **For voice output-** - output_mechanism='text' + output_mechanism='voice' 5. **For voice and text output-** @@ -262,10 +286,54 @@ You can set below parameter while creating object of JarvisAI- **WIP** **You tell me** - at dipeshpal17@gmail.com or my social media. + at info@jarvisai.in or my www.dipeshpal.in/social ## 7. Contribute- - **Instructions Coming Soon** + + 1. Clone this repo. + 2. Create your file in JarvisAI/JarvisAI/features/ + 3. Write entry function like this- + + + def some_func(*args, **kwargs): + query = kwargs.get("query") + entities = kwargs.get("entities") + li = ['EVENT', 'FAC', 'GPE', 'LANGUAGE', 'LAW', 'LOC', 'MONEY', 'NORP', 'ORDINAL', 'ORG', + 'PERCENT', 'PERSON', 'PRODUCT', 'TIME', 'WORK_OF_ART'] + topic = [entity[0] for entity in entities if entity[1] in li][0] + return "This Code Done" + + - query is the text that is recognized by your microphone + + - entities Named Entity Recognition is a technique of natural language processing that is used for the categorization of the data + + - Example- + + query: who is Narendra Modi + + entities: [('Narendra Modi', 'PERSON')] + + topic: Narendra Modi + + So, now you got the topic from query and now you can play with the topic. + + 4. Your function can return someting text or perform something. Return text will be automatically print / spoken by your system. + 5. In JarvisAI/JarvisAI/features_manager.py , import and add your function like this + + try: + from features.your_file import some_func + except Exception as e: + from .features.your_file import some_func + + action_map = { + ..... + .... + 'your_intent': some_func + } + + 6. That's it now raise pull request. I'll verify your code. If working, ethical and all terms are followed, I'll approve. + 7. You will become contributer. + ## 8. Contact me- - [Instagram](https://www.instagram.com/dipesh_pal17) @@ -277,7 +345,8 @@ You can set below parameter while creating object of JarvisAI- Consider donating to JarvisAI to support our mission of keeping our servers running 24/7. Your contribution will enable us to continue doing great things and providing valuable services. Every little bit helps! -[Click Here to support](https://www.instamojo.com/@techport/?ref=preview) + +[Click Here to support](https://www.instamojo.com/@techport/) **_Feel free to use my code, don't forget to mention credit. All the contributors will get credits in this repo._** **_Mention below line for credits-_** @@ -288,11 +357,11 @@ Consider donating to JarvisAI to support our mission of keeping our servers runn - [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) -- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) +- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) ## 10. Thank me on- - - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) + - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) - Subscribe me on YouTube: [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) @@ -350,6 +419,11 @@ What is our premium plan? ## YouTube Tutorial- Click on the image below to watch the tutorial on YouTube- + +**Tutorial Latest-** + +[![JarvisAI Tutorial 1](https://img.youtube.com/vi/hPE-kdRmYf8/0.jpg)](https://www.youtube.com/watch?v=hPE-kdRmYf8) + **Tutorial 1-** @@ -430,22 +504,23 @@ The JarvisAI’s architecture is divided into two parts. You need only this piece of code- - def custom_function(*args, **kwargs): + import JarvisAI + + def custom_function(*args, **kwargs): command = kwargs.get('query') entities = kwargs.get('entities') print(entities) # write your code here to do something with the command # perform some tasks # return is optional return command + ' Executed' - - - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') - # add_action("general", custom_function) # OPTIONAL - jarvis.start() - + + + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') + JarvisAI.add_action('custom_function', custom_function) + jarvis.start() ### 4.3. **What's now?** @@ -454,10 +529,28 @@ The JarvisAI’s architecture is divided into two parts. You can configure `input_mechanism` and `output_mechanism` parameter for voice input/output or text input/output. ### 4.4. Let's understand the Parameters- + +For text input- + + input_mechanism='text' + +For voice input- + + input_mechanism='voice' + +For text output- + + output_mechanism='text' + +For voice output- + + output_mechanism='voice' + +For voice and text output- + + output_mechanism='both' - ```bash :param input_method: (object) method to get input from user :param output_method: (object) method to give output to user :param api_key: (str) [Default ''] api key to use JarvisAI get it from http://jarvis-ai-api.herokuapp.com :param detect_wake_word: (bool) [Default True] detect wake word or not :param wake_word_detection_method: (object) [Default None] method to detect wake word :param google_speech_recognition_input_lang: (str) [Default 'en'] language of the input Check supported languages here: https://cloud.google.com/speech-to-text/docs/languages :param google_speech_recognition_key: (str) [Default None] api key to use Google Speech API :param google_speech_recognition_duration_listening: (int) [Default 5] duration of the listening - READ MORE: Google Speech API (Pricing and Key) at: https://cloud.google.com/speech-to-text -``` + ## 5. What it can do (Features it supports)- 1. Currently, it supports only english language @@ -503,10 +596,10 @@ These are below supported intent that AI can handle, you can ask in natural lang You can set below parameter while creating object of JarvisAI- - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') 1. **For text input-**' @@ -522,7 +615,7 @@ You can set below parameter while creating object of JarvisAI- 4. **For voice output-** - output_mechanism='text' + output_mechanism='voice' 5. **For voice and text output-** @@ -532,10 +625,54 @@ You can set below parameter while creating object of JarvisAI- **WIP** **You tell me** - at dipeshpal17@gmail.com or my social media. + at info@jarvisai.in or my www.dipeshpal.in/social ## 7. Contribute- - **Instructions Coming Soon** + + 1. Clone this repo. + 2. Create your file in JarvisAI/JarvisAI/features/ + 3. Write entry function like this- + + + def some_func(*args, **kwargs): + query = kwargs.get("query") + entities = kwargs.get("entities") + li = ['EVENT', 'FAC', 'GPE', 'LANGUAGE', 'LAW', 'LOC', 'MONEY', 'NORP', 'ORDINAL', 'ORG', + 'PERCENT', 'PERSON', 'PRODUCT', 'TIME', 'WORK_OF_ART'] + topic = [entity[0] for entity in entities if entity[1] in li][0] + return "This Code Done" + + - query is the text that is recognized by your microphone + + - entities Named Entity Recognition is a technique of natural language processing that is used for the categorization of the data + + - Example- + + query: who is Narendra Modi + + entities: [('Narendra Modi', 'PERSON')] + + topic: Narendra Modi + + So, now you got the topic from query and now you can play with the topic. + + 4. Your function can return someting text or perform something. Return text will be automatically print / spoken by your system. + 5. In JarvisAI/JarvisAI/features_manager.py , import and add your function like this + + try: + from features.your_file import some_func + except Exception as e: + from .features.your_file import some_func + + action_map = { + ..... + .... + 'your_intent': some_func + } + + 6. That's it now raise pull request. I'll verify your code. If working, ethical and all terms are followed, I'll approve. + 7. You will become contributer. + ## 8. Contact me- - [Instagram](https://www.instagram.com/dipesh_pal17) @@ -547,7 +684,8 @@ You can set below parameter while creating object of JarvisAI- Consider donating to JarvisAI to support our mission of keeping our servers running 24/7. Your contribution will enable us to continue doing great things and providing valuable services. Every little bit helps! -[Click Here to support](https://www.instamojo.com/@techport/?ref=preview) + +[Click Here to support](https://www.instamojo.com/@techport/) **_Feel free to use my code, don't forget to mention credit. All the contributors will get credits in this repo._** **_Mention below line for credits-_** @@ -558,11 +696,11 @@ Consider donating to JarvisAI to support our mission of keeping our servers runn - [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) -- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) +- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) ## 10. Thank me on- - - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) + - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) - Subscribe me on YouTube: [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) @@ -617,6 +755,11 @@ What is our premium plan? ## YouTube Tutorial- Click on the image below to watch the tutorial on YouTube- + +**Tutorial Latest-** + +[![JarvisAI Tutorial 1](https://img.youtube.com/vi/hPE-kdRmYf8/0.jpg)](https://www.youtube.com/watch?v=hPE-kdRmYf8) + **Tutorial 1-** @@ -697,22 +840,23 @@ The JarvisAI’s architecture is divided into two parts. You need only this piece of code- - def custom_function(*args, **kwargs): + import JarvisAI + + def custom_function(*args, **kwargs): command = kwargs.get('query') entities = kwargs.get('entities') print(entities) # write your code here to do something with the command # perform some tasks # return is optional return command + ' Executed' - - - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') - # add_action("general", custom_function) # OPTIONAL - jarvis.start() - + + + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') + JarvisAI.add_action('custom_function', custom_function) + jarvis.start() ### 4.3. **What's now?** @@ -721,10 +865,28 @@ The JarvisAI’s architecture is divided into two parts. You can configure `input_mechanism` and `output_mechanism` parameter for voice input/output or text input/output. ### 4.4. Let's understand the Parameters- + +For text input- + + input_mechanism='text' + +For voice input- + + input_mechanism='voice' + +For text output- + + output_mechanism='text' + +For voice output- + + output_mechanism='voice' + +For voice and text output- + + output_mechanism='both' - ```bash :param input_method: (object) method to get input from user :param output_method: (object) method to give output to user :param api_key: (str) [Default ''] api key to use JarvisAI get it from http://jarvis-ai-api.herokuapp.com :param detect_wake_word: (bool) [Default True] detect wake word or not :param wake_word_detection_method: (object) [Default None] method to detect wake word :param google_speech_recognition_input_lang: (str) [Default 'en'] language of the input Check supported languages here: https://cloud.google.com/speech-to-text/docs/languages :param google_speech_recognition_key: (str) [Default None] api key to use Google Speech API :param google_speech_recognition_duration_listening: (int) [Default 5] duration of the listening - READ MORE: Google Speech API (Pricing and Key) at: https://cloud.google.com/speech-to-text -``` + ## 5. What it can do (Features it supports)- 1. Currently, it supports only english language @@ -770,10 +932,10 @@ These are below supported intent that AI can handle, you can ask in natural lang You can set below parameter while creating object of JarvisAI- - jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both', - google_speech_api_key=None, backend_tts_api='pyttsx3', - use_whisper_asr=False, display_logs=False, - api_key='527557f2-0b67-4500-8ca0-03766ade589a') + jarvis = JarvisAI.JarvisAI(input_mechanism='text', output_mechanism='text', + google_speech_api_key=None, backend_tts_api='pyttsx3', + use_whisper_asr=False, display_logs=False, + api_key='99f605ce-5bf9-4e80-93a3-f367df65aa27') 1. **For text input-**' @@ -789,7 +951,7 @@ You can set below parameter while creating object of JarvisAI- 4. **For voice output-** - output_mechanism='text' + output_mechanism='voice' 5. **For voice and text output-** @@ -799,10 +961,54 @@ You can set below parameter while creating object of JarvisAI- **WIP** **You tell me** - at dipeshpal17@gmail.com or my social media. + at info@jarvisai.in or my www.dipeshpal.in/social ## 7. Contribute- - **Instructions Coming Soon** + + 1. Clone this repo. + 2. Create your file in JarvisAI/JarvisAI/features/ + 3. Write entry function like this- + + + def some_func(*args, **kwargs): + query = kwargs.get("query") + entities = kwargs.get("entities") + li = ['EVENT', 'FAC', 'GPE', 'LANGUAGE', 'LAW', 'LOC', 'MONEY', 'NORP', 'ORDINAL', 'ORG', + 'PERCENT', 'PERSON', 'PRODUCT', 'TIME', 'WORK_OF_ART'] + topic = [entity[0] for entity in entities if entity[1] in li][0] + return "This Code Done" + + - query is the text that is recognized by your microphone + + - entities Named Entity Recognition is a technique of natural language processing that is used for the categorization of the data + + - Example- + + query: who is Narendra Modi + + entities: [('Narendra Modi', 'PERSON')] + + topic: Narendra Modi + + So, now you got the topic from query and now you can play with the topic. + + 4. Your function can return someting text or perform something. Return text will be automatically print / spoken by your system. + 5. In JarvisAI/JarvisAI/features_manager.py , import and add your function like this + + try: + from features.your_file import some_func + except Exception as e: + from .features.your_file import some_func + + action_map = { + ..... + .... + 'your_intent': some_func + } + + 6. That's it now raise pull request. I'll verify your code. If working, ethical and all terms are followed, I'll approve. + 7. You will become contributer. + ## 8. Contact me- - [Instagram](https://www.instagram.com/dipesh_pal17) @@ -814,7 +1020,8 @@ You can set below parameter while creating object of JarvisAI- Consider donating to JarvisAI to support our mission of keeping our servers running 24/7. Your contribution will enable us to continue doing great things and providing valuable services. Every little bit helps! -[Click Here to support](https://www.instamojo.com/@techport/?ref=preview) + +[Click Here to support](https://www.instamojo.com/@techport/) **_Feel free to use my code, don't forget to mention credit. All the contributors will get credits in this repo._** **_Mention below line for credits-_** @@ -825,11 +1032,11 @@ Consider donating to JarvisAI to support our mission of keeping our servers runn - [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) -- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) +- [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) ## 10. Thank me on- - - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/dipesh_pal17/) + - Follow me on Instagram: [https://www.instagram.com/dipesh_pal17](https://www.instagram.com/_dipeshpal_) - Subscribe me on YouTube: [https://www.youtube.com/dipeshpal17](https://www.youtube.com/dipeshpal17) @@ -840,7 +1047,7 @@ Consider donating to JarvisAI to support our mission of keeping our servers runn %prep -%autosetup -n JarvisAI-4.7 +%autosetup -n JarvisAI-4.8 %build %py3_build @@ -880,5 +1087,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Wed Apr 12 2023 Python_Bot - 4.7-1 +* Tue Apr 25 2023 Python_Bot - 4.8-1 - Package Spec generated -- cgit v1.2.3