GithubHelp home page GithubHelp logo

dipeshpal / jarvis_ai Goto Github PK

View Code? Open in Web Editor NEW
318.0 24.0 110.0 286 KB

Jarvis AI is a Python Module which is able to perform task like Chatbot, Assistant etc. It provides base functionality for any assistant application. This JarvisAI is built using Tensorflow, Pytorch, Transformers and other opensource libraries and frameworks.

License: MIT License

Python 100.00%
assistant python machine-learning virtual-assistant deep-learning

jarvis_ai's Introduction

Header

PythonTensorFlowPyTorch

Hello, folks!

This project is created only for those who are interested in building a Virtual Assistant. Generally, it took lots of time to write code from scratch to build a Virtual Assistant. So, I have built a Library called "JarvisAI", which gives you easy functionality to build your own Virtual Assistant.

Content-

  1. What is JarvisAI?
  2. Prerequisite
  3. Architecture
  4. Getting Started- How to use it?
  5. What it can do (Features it supports)
  6. Future / Request Features
  7. Contribute
  8. Contact me
  9. Donate
  10. Thank me on-

YouTube Tutorial-

Click on the image below to watch the tutorial on YouTube-

Tutorial 1-

JarvisAI Tutorial 1

Tutorial 2-

JarvisAI Tutorial 2

1. What is Jarvis AI?

Jarvis AI is a Python Module that is able to perform tasks like Chatbot, Assistant, etc. It provides base functionality for any assistant application. This JarvisAI is built using Tensorflow, Pytorch, Transformers, and other open-source libraries and frameworks. Well, you can contribute to this project to make it more powerful.

2. Prerequisite

  • Get your Free API key from https://jarvisai.in

  • To use it only Python (> 3.6) is required.

  • To contribute to the project: Python is the only prerequisite for basic scripting, Machine Learning, and Deep Learning knowledge will help this model to do tasks like AI-ML. Read the How to Contribute section of this page.

3. Architecture

The JarvisAI’s architecture is divided into two parts.

  1. User End- It is basically responsible for getting input from the user and after preprocessing input it sends input to JarvisAI’s server. And once the server sends its response back, it produces output on the user screen/system.

  2. Server Side- The server is responsible to handle various kinds of AI-ML, and NLP tasks. It mainly identifies user intent by analyzing user input and interacting with other external APIs and handling user input.

    JarvisAI’s Architecture

4. Getting Started- How to use it?

NOTE: Old version is depreciated use latest version of JarvisAI

4.1. Installation-

  • Install the latest version-

     pip install JarvisAI  

Optional Steps (Common Installation Issues)-

  • [Optional Step] If Pyaudio is not working or not installed you might need to install it separately-

    In the case of Mac OSX do the following:

     brew install portaudio  
     pip install pyaudio  
    

In the case of Windows or Linux do the following:

  • Download pyaudio from: lfd.uci.edu/~gohlke/pythonlibs/#pyaudio

  • pip install PyAudio-0.2.11-cp310-cp310-win_amd64.whl

4.2. Code You Need-

You need only this piece of code-

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()

4.3. What's now?

It will start your AI, it will ask you to give input and accordingly it will produce output.
You can configure input_mechanism and output_mechanism parameter for voice input/output or text input/output.

4.4. Let's understand the Parameters-

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
  2. Supports voice and text input/output.
  3. Supports AI based voice input (using whisper asr) and by using google api voice input.
  4. All intellectual task is process in JarvisAI server so there is no load on your system.
  5. Lightweight and able to understand natural language (commands)
  6. Ability to add your own custom functions.

5.1. Supported Commands-

These are below supported intent that AI can handle, you can ask in natural language.

Example- "What is the time now", "make me laugh", "click a photo", etc.

Note: Some features / command might not work. WIP. Tell me bugs.

  1. asking time
  2. asking date
  3. greet and hello hi kind of things goodbye
  4. tell me joke
  5. tell me about
  6. i am bored
  7. volume control
  8. tell me news
  9. click photo
  10. places near me
  11. play on youtube
  12. play games
  13. what can you do
  14. send email
  15. download youtube video
  16. asking weather
  17. take screenshot
  18. open website
  19. send whatsapp message
  20. covid cases
  21. check internet speed
  22. others / Unknown Intent (IN PROGRESS)

5.2. Supported Input/Output Methods (Which option do I need to choose?)-

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')
  1. For text input-'

     input_mechanism='text'
    
  2. For voice input-

     input_mechanism='voice'
    
  3. For text output-

     output_mechanism='text'
    
  4. For voice output-

     output_mechanism='text'
    
  5. For voice and text output-

     output_mechanism='both'
    

6. Future/Request Features-

WIP
You tell me

7. Contribute-

Instructions Coming Soon

8. Contact me-

9. Donate-

Donate and Contribute to run me this project, and buy a domain

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-
Credits-

10. Thank me on-

License

MIT

jarvis_ai's People

Contributors

dipeshpal avatar gliuyhtgk avatar javicordo avatar umesh-01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jarvis_ai's Issues

No Attribute named Jarvis

image
no attribute named "Jarvis" at jarvis = JarvisAI.Jarvis(input_mechanism='voice', output_mechanism='both',
google_speech_api_key=None, backend_tts_api='pyttsx3',
use_whisper_asr=True, display_logs=True, api_key=None)

missing "=" at requiretment txt file

hi dear thank you your effort and time.there is missing equal sign at reuiretment.txt file last line googlesearch-python=1.0.1 should be googlesearch-python==1.0.1.

tnx.

Simple AI reply

Hey!

I like your project, but I wanna implement this into a discord bot, and I want the module to answer to a text message. Is there any method like, reply = ai.get_ai_reply('Hey').

And also, it would be great if you get some docs for the same!

But it would be great if you help me so that it can also answer by text questions. And also, is there an async version?

Thank you in advance

No module named best_answer_finder

Traceback (most recent call last):
File "C:\Users\materialsworld\anaconda3\lib\site-packages\JarvisAI_init_.py", line 26, in
import features.weather.weather as wea
ModuleNotFoundError: No module named 'features'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\materialsworld\Desktop\Akul Goel\Professional Apps\Jarvis\JARVIS\main.py", line 1, in
import JarvisAI
File "C:\Users\materialsworld\anaconda3\lib\site-packages\JarvisAI_init_.py", line 79, in
from JarvisAI.features.chatbot.jarvis_ai_neural_engine import neural_engine
File "C:\Users\materialsworld\anaconda3\lib\site-packages\JarvisAI\features\chatbot\jarvis_ai_neural_engine\neural_engine.py", line 3, in
import best_answer_finder
ModuleNotFoundError: No module named 'best_answer_finder'

how do i fix this
thankyou

can't find model 'en_core_web_trf'

File "C:\Users\India\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py", line 439, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en_core_web_trf'. It doesn't seem to be a Python package or a valid path to a data directory.

Why so many versions of opencv

I don't understand what this is trying to do. Why are so many versions of OpenCV being installed? Why is OpenCV an imaging toolkit needed for speech processing?

image

Also there are a couple different versions of numpy being installed.

Finally, do you know Jarvis is a registered trademark for NVidia voice assistant? 😆

pip install problem

error: subprocess-exited-with-error
This is how the issue looks like Collecting JarvisAI
Using cached JarvisAI-4.8-py3-none-any.whl (30 kB)
Collecting numpy (from JarvisAI)
Using cached numpy-1.24.3-cp311-cp311-win_amd64.whl (14.8 MB)
Collecting gtts (from JarvisAI)
Using cached gTTS-2.3.2-py3-none-any.whl (28 kB)
Collecting playsound (from JarvisAI)
Using cached playsound-1.3.0.tar.gz (7.7 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Local\Temp\pip-build-env-9nw5xdjl\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Local\Temp\pip-build-env-9nw5xdjl\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "C:\Users\Dell\AppData\Local\Temp\pip-build-env-9nw5xdjl\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
self).run_setup(setup_script=setup_script)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Local\Temp\pip-build-env-9nw5xdjl\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
exec(code, locals())
File "", line 6, in
File "C:\Python311\Lib\inspect.py", line 1262, in getsource
lines, lnum = getsourcelines(object)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\inspect.py", line 1244, in getsourcelines
lines, lnum = findsource(object)
^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\inspect.py", line 1081, in findsource
raise OSError('could not get source code')
OSError: could not get source code
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Install JarvisAI pip error

Describe the issues:

I had installed python 3.10 + 3.11,Pycharm...
Error when I install the Jarvis pip

How to Reproduce:

Steps to reproduce the behavior by text:

  1. Install pip:
pip install JarvisAI
  1. See this error pop up:
Collecting JarvisAI
  Using cached JarvisAI-4.2-py3-none-any.whl (2.5 MB)
Collecting shutup
  Using cached shutup-0.2.0-py3-none-any.whl (1.5 kB)
Collecting torch
  Downloading torch-1.13.1-cp310-cp310-win_amd64.whl (162.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.6/162.6 MB 4.2 MB/s eta 0:00:00
Collecting gtts
  Using cached gTTS-2.3.0-py3-none-any.whl (26 kB)
Requirement already satisfied: wikipedia in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (1.4.0)
Requirement already satisfied: pywhatkit in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (5.4)  
Requirement already satisfied: beautifulsoup4 in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (4
.11.1)
Requirement already satisfied: requests in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (2.28.1)
Collecting googlesearch-python
  Using cached googlesearch_python-1.1.0-py3-none-any.whl (3.6 kB)
Requirement already satisfied: pyjokes in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (0.6.0)
Collecting pipwin
  Using cached pipwin-0.5.2.tar.gz (7.9 kB)
  Preparing metadata (setup.py) ... done
Collecting playsound==1.2.2
  Using cached playsound-1.2.2-py2.py3-none-any.whl (6.0 kB)
Collecting fuzzywuzzy
  Using cached fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: numpy in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (1.23.4)   
Collecting lxml
  Using cached lxml-4.9.2-cp310-cp310-win_amd64.whl (3.8 MB)
Requirement already satisfied: SpeechRecognition in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI)
 (3.9.0)
Collecting youtube-search-python
  Using cached youtube_search_python-1.6.6-py3-none-any.whl (89 kB)
Collecting pytube
  Using cached pytube-12.1.2-py3-none-any.whl (57 kB)
Collecting phonetics
  Using cached phonetics-1.0.5.tar.gz (8.8 kB)
  Preparing metadata (setup.py) ... done
Collecting mediapipe==0.8.11
  Using cached mediapipe-0.8.11-cp310-cp310-win_amd64.whl (49.0 MB)
Collecting download
  Using cached download-0.3.5-py3-none-any.whl (8.8 kB)
Collecting pyaudio
  Using cached PyAudio-0.2.13-cp310-cp310-win_amd64.whl (164 kB)
Collecting pyscreenshot
  Using cached pyscreenshot-3.0-py3-none-any.whl (27 kB)
Collecting wave
  Using cached Wave-0.0.2.zip (38 kB)
  Preparing metadata (setup.py) ... done
Collecting opencv-python
  Using cached opencv_python-4.7.0.68-cp37-abi3-win_amd64.whl (38.2 MB)
Requirement already satisfied: pyttsx3 in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (2.90)
Collecting spacy
  Using cached spacy-3.4.4-cp310-cp310-win_amd64.whl (11.9 MB)
Requirement already satisfied: Flask in c:\users\admin\anaconda3\envs\my_project\lib\site-packages (from JarvisAI) (2.2.2)
Collecting googletrans
  Using cached googletrans-3.0.0.tar.gz (17 kB)
  Preparing metadata (setup.py) ... done
Collecting JarvisAI
  Using cached JarvisAI-4.1-py3-none-any.whl (2.5 MB)
  Using cached JarvisAI-4.0-py3-none-any.whl (2.5 MB)
Collecting webrtcvad
  Using cached webrtcvad-2.0.10.tar.gz (66 kB)
  Preparing metadata (setup.py) ... done
Collecting JarvisAI
  Using cached JarvisAI-3.9-py3-none-any.whl (36 kB)
Collecting pipwin==0.5.0
  Using cached pipwin-0.5.0-py2.py3-none-any.whl (7.6 kB)
Collecting shutup==0.1.3
  Using cached shutup-0.1.3-py3-none-any.whl (1.3 kB)
Collecting youtube-search-python==1.5.3
  Using cached youtube_search_python-1.5.3-py3-none-any.whl (73 kB)
Collecting librosa==0.8.0
  Using cached librosa-0.8.0.tar.gz (183 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers==4.3.2
  Using cached transformers-4.3.2-py3-none-any.whl (1.8 MB)
Collecting beautifulsoup4==4.9.3
  Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting SpeechRecognition==3.8.1
  Using cached SpeechRecognition-3.8.1-py2.py3-none-any.whl (32.8 MB)
Collecting opencv-contrib-python==4.5.2.52
  Using cached opencv-contrib-python-4.5.2.52.tar.gz (149.7 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [316 lines of output]
      Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment        
      Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't ma
tch your environment
      Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "darwin" and platform_machine == "aarch64"' don't m
atch your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment        
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64"' don't match your environment        
      Collecting setuptools
        Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB)
      Collecting wheel
        Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
      Collecting scikit-build
        Downloading scikit_build-0.16.4-py3-none-any.whl (78 kB)
           -------------------------------------- 78.6/78.6 kB 727.3 kB/s eta 0:00:00
      Collecting cmake
        Using cached cmake-3.25.0-py2.py3-none-win_amd64.whl (32.6 MB)
      Collecting pip
        Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
      Collecting numpy==1.19.3
        Using cached numpy-1.19.3.zip (7.3 MB)
        Installing build dependencies: started
        Installing build dependencies: finished with status 'done'
        Getting requirements to build wheel: started
        Getting requirements to build wheel: finished with status 'done'
        Preparing metadata (pyproject.toml): started
        Preparing metadata (pyproject.toml): finished with status 'error'
        error: subprocess-exited-with-error
     
        Preparing metadata (pyproject.toml) did not run successfully.
        exit code: 1
     
        [275 lines of output]
        setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.10.
          warnings.warn(
        Running from numpy source directory.
        setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding te
mplates
          run_build = parse_setuppy_commands()
        Processing numpy/random\_bounded_integers.pxd.in
        Processing numpy/random\bit_generator.pyx
        Processing numpy/random\mtrand.pyx
        Processing numpy/random\_bounded_integers.pyx.in
        Processing numpy/random\_common.pyx
        Processing numpy/random\_generator.pyx
        Processing numpy/random\_mt19937.pyx
        Processing numpy/random\_pcg64.pyx
        Processing numpy/random\_philox.pyx
        Processing numpy/random\_sfc64.pyx
        Cythonizing sources
        blas_opt_info:
        blas_mkl_info:
        No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
        customize MSVCCompiler
          libraries mkl_rt not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anac
onda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        blis_info:
          libraries blis not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anacon
da3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        openblas_info:
          libraries openblas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\an
aconda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
        get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 
'intelem', 'flang']'
        customize GnuFCompiler
        Could not locate executable g77
        Could not locate executable f77
        customize IntelVisualFCompiler
        Could not locate executable ifort
        Could not locate executable ifl
        customize AbsoftFCompiler
        Could not locate executable f90
        customize CompaqVisualFCompiler
        Could not locate executable DF
        customize IntelItaniumVisualFCompiler
        Could not locate executable efl
        customize Gnu95FCompiler
        Could not locate executable gfortran
        Could not locate executable f95
        customize G95FCompiler
        Could not locate executable g95
        customize IntelEM64VisualFCompiler
        customize IntelEM64TFCompiler
        Could not locate executable efort
        Could not locate executable efc
        customize PGroupFlangCompiler
        Could not locate executable flang
        don't know how to compile Fortran code on platform 'nt'
          NOT AVAILABLE
     
        atlas_3_10_blas_threads_info:
        Setting PTATLAS=ATLAS
          libraries tatlas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anac
onda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        atlas_3_10_blas_info:
          libraries satlas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anac
onda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        atlas_blas_threads_info:
        Setting PTATLAS=ATLAS
          libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\U
sers\\Admin\\anaconda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        atlas_blas_info:
          libraries f77blas,cblas,atlas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users
\\Admin\\anaconda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        accelerate_info:
          NOT AVAILABLE
     
        C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\system_i
nfo.py:1914: UserWarning:
            Optimized (vendor) Blas libraries are not found.
            Falls back to netlib Blas library which has worse performance.
            A better performance should be easily gained by switching
            Blas library.
          if self._calc_info(blas):
        blas_info:
          libraries blas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anacon
da3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\system_i
nfo.py:1914: UserWarning:
            Blas (http://www.netlib.org/blas/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [blas]) or by setting
            the BLAS environment variable.
          if self._calc_info(blas):
        blas_src_info:
          NOT AVAILABLE
      
        C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\system_i
nfo.py:1914: UserWarning:
            Blas (http://www.netlib.org/blas/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [blas_src]) or by setting
            the BLAS_SRC environment variable.
          if self._calc_info(blas):
          NOT AVAILABLE
     
        non-existing path in 'numpy\\distutils': 'site.cfg'
        lapack_opt_info:
        lapack_mkl_info:
          libraries mkl_rt not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anac
onda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        openblas_lapack_info:
          libraries openblas not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\an
aconda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        openblas_clapack_info:
          libraries openblas,lapack not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Ad
min\\anaconda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        flame_info:
          libraries flame not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anaco
nda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        atlas_3_10_threads_info:
        Setting PTATLAS=ATLAS
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries tatlas,tatlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries lapack_atlas not found in C:\
          libraries tatlas,tatlas not found in C:\
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries tatlas,tatlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\Library\lib
          libraries tatlas,tatlas not found in C:\Users\Admin\anaconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
          NOT AVAILABLE
     
        atlas_3_10_info:
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries satlas,satlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries lapack_atlas not found in C:\
          libraries satlas,satlas not found in C:\
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries satlas,satlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\Library\lib
          libraries satlas,satlas not found in C:\Users\Admin\anaconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_3_10_info'>
          NOT AVAILABLE
     
        atlas_threads_info:
        Setting PTATLAS=ATLAS
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries lapack_atlas not found in C:\
          libraries ptf77blas,ptcblas,atlas not found in C:\
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\Library\lib
          libraries ptf77blas,ptcblas,atlas not found in C:\Users\Admin\anaconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_threads_info'>
          NOT AVAILABLE
     
        atlas_info:
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries f77blas,cblas,atlas not found in C:\Users\Admin\anaconda3\envs\My_project\lib
          libraries lapack_atlas not found in C:\
          libraries f77blas,cblas,atlas not found in C:\
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries f77blas,cblas,atlas not found in C:\Users\Admin\anaconda3\envs\My_project\libs
          libraries lapack_atlas not found in C:\Users\Admin\anaconda3\Library\lib
          libraries f77blas,cblas,atlas not found in C:\Users\Admin\anaconda3\Library\lib
        <class 'numpy.distutils.system_info.atlas_info'>
          NOT AVAILABLE
     
        lapack_info:
          libraries lapack not found in ['C:\\Users\\Admin\\anaconda3\\envs\\My_project\\lib', 'C:\\', 'C:\\Users\\Admin\\anac
onda3\\envs\\My_project\\libs', 'C:\\Users\\Admin\\anaconda3\\Library\\lib']
          NOT AVAILABLE
     
        C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\system_i
nfo.py:1748: UserWarning:
            Lapack (http://www.netlib.org/lapack/) libraries not found.
            Directories to search for the libraries can be specified in the
            numpy/distutils/site.cfg file (section [lapack]) or by setting
            the LAPACK environment variable.
          return getattr(self, '_calc_info_{}'.format(name))()
        lapack_src_info:
          NOT AVAILABLE
     
        C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\system_i
nfo.py:1748: UserWarning:
            Lapack (http://www.netlib.org/lapack/) sources not found.
            Directories to search for the sources can be specified in the
            numpy/distutils/site.cfg file (section [lapack_src]) or by setting
            the LAPACK_SRC environment variable.
          return getattr(self, '_calc_info_{}'.format(name))()
          NOT AVAILABLE
     
        numpy_linalg_lapack_lite:
          FOUND:
            language = c
            define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
     
        C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\dist.py:275: 
UserWarning: Unknown distribution option: 'define_macros'
          warnings.warn(msg)
        running dist_info
        running build_src
        build_src
        building py_modules sources
        creating build
        creating build\src.win-amd64-3.10
        creating build\src.win-amd64-3.10\numpy
        creating build\src.win-amd64-3.10\numpy\distutils
        building library "npymath" sources
        Traceback (most recent call last):
          File "C:\Users\Admin\anaconda3\envs\My_project\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line
 351, in <module>
            main()
          File "C:\Users\Admin\anaconda3\envs\My_project\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line
 333, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "C:\Users\Admin\anaconda3\envs\My_project\Lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line
 152, in prepare_metadata_for_build_wheel
            return hook(metadata_directory, config_settings)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\build_meta.py", 
line 157, in prepare_metadata_for_build_wheel
            self.run_setup()
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\build_meta.py", 
line 248, in run_setup
            super(_BuildMetaLegacyBackend,
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\build_meta.py", 
line 142, in run_setup
            exec(compile(code, __file__, 'exec'), locals())
          File "setup.py", line 508, in <module>
            setup_package()
          File "setup.py", line 500, in setup_package
            setup(**metadata)
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
core.py", line 169, in setup
            return old_setup(**new_attr)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\__init__.py", li
ne 165, in setup
            return distutils.core.setup(**attrs)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\core.
py", line 148, in setup
            dist.run_commands()
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\dist.
py", line 967, in run_commands
            self.run_command(cmd)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\dist.
py", line 986, in run_command
            cmd_obj.run()
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\command\dist_inf
o.py", line 31, in run
            egg_info.run()
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\egg_info.py", line 24, in run
            self.run_command("build_src")
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\cmd.p
y", line 313, in run_command
            self.distribution.run_command(command)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\dist.
py", line 986, in run_command
            cmd_obj.run()
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\build_src.py", line 144, in run
            self.build_sources()
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\build_src.py", line 155, in build_sources
            self.build_library_sources(*libname_info)
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\build_src.py", line 288, in build_library_sources
            sources = self.generate_sources(sources, (lib_name, build_info))
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\build_src.py", line 378, in generate_sources
            source = func(extension, build_dir)
          File "numpy\core\setup.py", line 658, in get_mathlib_info
            st = config_cmd.try_link('int main(void) { return 0;}')
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\comma
nd\config.py", line 243, in try_link
            self._link(body, headers, include_dirs,
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\config.py", line 162, in _link
            return self._wrap_method(old_config._link, lang,
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\config.py", line 96, in _wrap_method
            ret = mth(*((self,)+args))
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\comma
nd\config.py", line 137, in _link
            (src, obj) = self._compile(body, headers, include_dirs, lang)
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\config.py", line 105, in _compile
            src, obj = self._wrap_method(old_config._compile, lang,
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
command\config.py", line 96, in _wrap_method
            ret = mth(*((self,)+args))
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\comma
nd\config.py", line 132, in _compile
            self.compiler.compile([src], include_dirs=include_dirs)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\_msvc
compiler.py", line 401, in compile
            self.spawn(args)
          File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-rj_aw3he\overlay\Lib\site-packages\setuptools\_distutils\_msvc
compiler.py", line 505, in spawn
            return super().spawn(cmd, env=env)
          File "C:\Users\Admin\AppData\Local\Temp\pip-install-w_b5kd3_\numpy_04ac7cc3e5884d778a1a420bec7a5697\numpy\distutils\
ccompiler.py", line 90, in <lambda>
            m = lambda self, *args, **kw: func(self, *args, **kw)
        TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
        [end of output]
     
        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed
     
      Encountered error while generating package metadata.
     
      See above for output.
     
      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Expected behavior:

Install JarvisAI pip

Having issue importing.

I have tried both methods to no avail, it could be that I am a beginner or that I am just doing it wrong. I attempted the Direct install and the .txt install and got syntax errors.

pip install issues

i am trying install jarviai and i got this error, any idea

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\Users\joshim bharat\AppData\Local\Temp\pip-install-6h3sk_m8\opencv-contrib-python_c1d93fd9869946699a2be3892fb1eeda\opencv/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.WindowsPhone/video_capture_xaml.WindowsPhone.vcxproj.filters'
HINT: This error might have occurred since this system does not have Windows Long Path support enabled. You can find information on how to enable this at https://pip.pypa.io/warnings/enable-long-paths

Installation Problem

I tried to install JarvisAI using pip install JarvisAI

I got
error: subprocess-exited-with-error

Can anyone guide me to install ???

import issue

when I use import JarvisAI, I get the following message

'pipwin' is not recognized as an internal or external command,
operable program or batch file.

ModuleNotFoundError: No module named 'JarvisAI'

I followed README.md to 4.3 (code)
(I had install python+pip...)
and then this error poped up when I try to run this code

import JarvisAI  
	 
# create your own function  
# It must contain parameter 'feature_command' which is the command you want to execute  
# Return is optional  
# If you want to provide return value it should only return text (str)  
# Your return value will be displayed or call out by the choice of OutputMethods of JarvisAI  
  
def custom_function(feature_command="custom command"):  
    # write your code here to do something with the command  
	# perform some tasks # return is optional  
	return feature_command + ' Executed'  
  
obj = JarvisAI.JarvisAI(input_method=JarvisAI.InputsMethods.voice_input_google_api,
                        output_method=JarvisAI.OutputMethods.voice_output,
                        backend_tts_api='pyttsx3',
                        api_key="c6fd2013918f9bc9a12c5394a819af49",
                        detect_wake_word=False,
                        wake_word_detection_method=JarvisAI.InputsMethods.voice_input_google_api,
                        bot_name="Jarvis",
                        display_intent=True,
                        google_speech_recognition_input_lang='en',
                        google_speech_recognition_key=None,
                        google_speech_recognition_duration_listening=5)  
 
obj.register_feature(feature_obj=custom_function, feature_command='custom feature')  
  
obj.start()

The error:

  File "d:\**********.py", line 1, in <module>
    import JarvisAI  
ModuleNotFoundError: No module named 'JarvisAI'

Speech Recognition stop after few Hits

Problem-

Currently it uses https://pypi.org/project/SpeechRecognition/ for speech recognition.

 # for testing purposes, we're just using the default API key
 # to use another API key, use `r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
 # instead of `r.recognize_google(audio)`
 print("Google Speech Recognition thinks you said " + r.recognize_google(audio))

after few hits of recognize_google() we are not able to use it.

Solution-

Need to implement Deep Learning based model to recognition speech.

Difficulty?

It's time, LOL. I am the only one who is currently working on this project. Contribute on this to make it big.
Read Docs for the contribution https://github.com/Dipeshpal/Jarvis_AI

Skill framework

Do you plan on adding some sort of skills framework that people can use to make their own modules without even touching the main code? (I accidentally messed it up on my end lol.)

AI Project Features

Issue regarding all the features they aren't working by launching the app.
Any idea how to use/call them through one main class

Tell me about function error

Traceback (most recent call last):
File "C:\Users\siddh\OneDrive\Documents\Virtual assistant\Final\Jarvis-Assisant-master\scripts\main.py", line 105, in
wiki_res = obj.tell_me(topic, sentences=1)
TypeError: tell_me() got an unexpected keyword argument 'sentences'

Canot install this PIP on Raspberry Pi

I want to setup Jarvis AI on my raspberry pi 4 B model.
But there is an error installing the module on my raspberry.
`pi@raspberrypi:~ $ pip install JarvisAI

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting JarvisAI
  Could not find a version that satisfies the requirement JarvisAI (from versions: )
No matching distribution found for JarvisAI

`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.