Name already in use
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
It is a voice assistant which can be used to interact with your computer and also you have been seeing it in Iron man movies, but this JARVIS is not that much advanced as shown in movies.
Built with: Python
- Demo video for JARVIS is available here
Cool functionalities of JARVIS 🙂
I have wrote code which you can use JARVIS in the following ways :
It can tell count of Covid-19 cases for each state in India
It can do Screen Recording with voice recording stuff.
It can also do voice recording
It can access your mobile camera
It can access your web camera
Unfortunately there is no such thing as magic, and neither we, nor anyone else, have the ability to derive a phone’s location from an input string.
Here is what is actually happening:
The phone number is entered and a library is used to turn the country calling code into the name of the country. For example numbers starting with +91 becomes India, +880 is Bangladesh, +34 is Spain, etc.
The country name is then sent to our geocoding API as a forward geocoding request (placename to coordinates). We then return the coordinates of the center of the country. For example we turn India into 22.3511148, 78.6677428, roughly in the middle of Uttar Pradesh.
People get confused and angry as to why the coordinates are not actually where the phone is physically located.
It can read pdf’s
It can work as a telephone dictionary(Add contacts, search contacts)
It can generate qr codes for Links/anyText.
It can check/find your Internet speed
It can tell your IP address
It can tell the latest news
It can check the system condition
It can send gmails
It can send whatsapp messages to Individual & group chats
It can play youtube songs
It can download youtube songs
It can download instagram profiles
It can find/tell your current location where ever you are
It can take screenshots with a custom filename
It can tell current time
It can tell current day
It can tell random progrmamming jokes
It can also tell your schedule for each day
It can be silent for a certain number of time if we mention how much time we want it to be silent
It can search in wikipedia and tell about it in 5 lines
It can tell procedure/instructions how to make something(Eg:How to make a cake)
It can search for information in browser which we want
It can control system volumes
It can control system power activities(Eg: shutdown, restart, sleep)
It can play music file in a particular directory where the songs are present
It can open your social media and open-source accounts
It can open your college meeting accounts
It can open your OTT platforms accounts
It can open your all google apps
It can open presentation tools like canva, google slide
It can open shopping websites
It can open all the URL links
It can open/close all the pc applications(NOTE: give correct path based on your OS)
It can sleep until you say wake up
Finally It can interact with you and you can also add more commands if you want
NOTE: Before running the code you must make sure you have all the modules installed in your python version(NOTE: python version can be >=3.6).
These are the following modules used in JARVIS :
To run this project you should need some API key’s for reading news, for finding phone number location. Register for your API key by clicking the following
-
: used for fetching news : to locate a place in maps
Note : supported OS : Windows, working on the making the JARVIS for Linux, but it many take some time.
You need to first fork this repository and clone the repository to your local system
git clone https://github.com/<your-github-username>/J.A.R.V.I.S.git
Make sure to install all the required python modules mentioned above or you can simply install them by
pip install -r requirements.txt
Note: For any errors while installing the python modules refer ERRORS.md because I got some errors while installing and using them.
Add the correct system paths in JARVIS.py to open the system applications
Add your gmail id and password to send emails(line:797,798)
Make sure you have registerd in NewsAPI and replace the apiKey= YOUR_NEWS_API_KEY with your API key(Line: 852) and in Open cage and replace the API_key = » _OPEN_CAGE_GEOCODE_API_KEY_ » with your API key(PhoneNumber.py(lineNo: 13))
For using mobile camera you need to first install an app in mobile called IP Webcam after installing go to START SERVER it will open your mobile camara at the bottom of the screen you can see IPv4 there you can find the IP address and replace _IP_Webcam_IP_address_ with the IP address in JARVIS.py MobileCamera function(line: 332)
Add the correct system paths to gifs or for background images in JarvisUi.py and JARVIS.py . If you got any elements missing(RED SCREEN) refer ERRORS.md file.
Finally run the python JARVIS.py file
That’s it #Enjoy speaking with your computer friend
Demo video for JARVIS is available here
FINAL GUI of JARVIS
Note: For any errors while installing the python modules refer ERRORS.md because I got some errors while installing and using them.
Motivation for this project
Due to covid19 in my house I’m in a seperate room, without talking with anyone, so thought to talk with my laptop which I will use everyday, and came up with this project.
How to Contribute
To contribute to this project please read the CONTRITUTING.md file.
Want to run JARVIS as an Application?
Read this, to convert a . py file to .exe file.
In the present JARVIS GUI we cannot see the commands running but they are visible on the terminal, so plan to bring up the commands to display on the GUI.
If you like the repository FORK && clone the repository, start using JARVIS, and don’t forget to ⭐ the repository.
About
A voice assistant which can be used to interact with your computer and controls your pc operations
Cвой Джарвис на языке программирования Python
Я думаю что все знают голосового помощника Джарвиса из фильма «Железный человек». И много кто мечтал сделать голосового помощника своими руками. В этой статье мы его напишем.
Создаём в папке вот такие файлы:
Открываем файл functions.py и импортируем библиотеки и остальные файлы:
После этого вставляем данный код и вписываем в строку alias название помощника(у нас pythonguru):
Дальше подключаем микрофон и голос самого помощника
Если у вас не работает микрофон то пробуйте менять значение device_index=1 (например на device_index=2)
Далее вставляем весь этот код (функции разговора ассистента, фунции прослушки микрофона и возможности самого ассистента):
Этот файл будет служить для запуска всего ассистента
С его помощью мы будем открывать любые сайты.
Самый простейший калькулятор на пайтоне
Как видите сделать своего голосового помощника на Python не так уж сложно, главное иметь знания об основах языка и всё получится.
Совершенствуй знания по Python каждый день у нас на телеграм канале, PythonGuru.
Скачать Jarvis — Ai Voice Assistant на ПК с помощью эмулятора GameLoop
Jarvis — Ai Voice Assistant, исходящий от разработчика Prosen Kumer, в прошлом работал на системе Android.
Теперь вы можете без проблем играть в Jarvis — Ai Voice Assistant на ПК с помощью GameLoop.
Загрузите его в библиотеке GameLoop или результатах поиска. Больше не нужно смотреть на аккумулятор или разочаровывать звонки в неподходящее время.
Просто наслаждайтесь Jarvis — Ai Voice Assistant на ПК на большом экране бесплатно!
Jarvis — Ai Voice Assistant Введение
Приложение голосового помощника Jarvis-Ai — лучшее приложение для голосовых команд. Это приложение всегда слушает ваше слово и отвечает на ваше слово. Все, что вам нужно сделать, это загрузить приложение голосового помощника и начать свое путешествие с помощью приложения голосового помощника Jarvis — Ai.
Это приложение голосового помощника заботится о вашей конфиденциальности. Jarivs — приложение Ai Assistant не принимает ваши данные.
Экран выключен / экран включен
Это приложение может отключать экран вашего телефона, а также на вашем экране.
Это приложение воспроизводит музыку для вас, а также приостанавливает воспроизведение музыки и воспроизводит следующую песню, предыдущую песню.
Вам не нужно нажимать на места, где вы все контролируете свой голос.
Это приложение голосового помощника Включено и выключено.
много голосовых команд внутри нашего приложения, пожалуйста, установите это приложение и используйте его.
Джарвис — приложение голосового помощника AI очень простое в использовании. Когда вы устанавливаете наше приложение, он принимает какое-то разрешение, просто дайте разрешение. И нажмите, как использовать опцию, и прочитайте, как отдавать голосовую команду.
Джарвис снова в деле
Наверняка, каждый мечтает о своем голосовом ассистенте, под катом еще одна реализация «Джарвиса» из известного фильма.
Давно не покидала мысль о своем «Jarvis» и управлении техникой в доме голосом. И вот, наконец, руки дошли до создания сего чуда. Над «мозгами» долго думать не пришлось, Raspberry Pi подходит идеально.
- Raspberry pi 3 model b
- USB камера logitech
Реализация
Работать наш ассистент будет по принципу Alexa/Hub:
- Активироваться оффлайн по определенному слову
- Распознать команду в облаке
- Выполнить команду
- Отчитаться о проделай работе либо сообщить запрашиваем информацию
Оффлайн активация
Активация будет происходить с помощью CMU Sphinx, и все бы хорошо, но из коробки распознание происходит очень медленно, больше 10 сек, что абсолютно не подходит, для решения проблемы нужно очистить словарь от ненужных слов.
Устанавливаем все необходимое:
удаляем все кроме нужного нам Джарвиса:
Теперь pocketsphinx распознает довольно быстро.
Распознавание речи
Сначала была идея воспользоваться сервисом гугла, к тому же его поддержка есть в SpeechRecognition. Но как оказалось гугл берет за это деньги и не работает с физ. лицами.
Благо Яндекс тоже предоставляет такую возможность, бесплатно и предельно просто.
Регистрируемся, получаем API KEY. Все работу можно производить curl’om.
Синтез речи
Тут нам опять поможет Яндекс. Посылаем текст в ответ получаем файл с синтезированным текстом
Jarvis
Собираем все вместе и получаем такой скрипт.
Что тут происходит. Запускаем бесконечный цикл, arecord’om записываем три секунды и отправляем sphinx на распознание, если в файле встречается слово «jarvis»
проигрываем заранее записанный фаил оповещения об активации.
Опять записываем 3 секунды и отправляем Яндексу, в ответ получаем нашу команду. Далее выполняем действия исходя из команды.
На этом собственно все. Сценариев выполнения можно придумать великое множество.
Use-case
Теперь немного примеров реального моего использования
Philips Hue
В приложении Hue устанавливаем статический IP:
Выписываем ID нужных схем, вида «470d4c3c8-on-0»
Конечный вариант скрипта:
В джарвиса добавляем:
LG TV
Берем скрипт отсюда. После первого запуска и ввода кода сопряжения, сам код не меняется, поэтому можно выпилить эту часть из скрипта и оставить только управляющую.
В джарвиса добавляем:
Радио
В джарвиса добавляем:
Еще можно поставить homebridge и управлять всем через Siri, в случае если до джарвиса не докричаться.
Что касается качества распознавания речи, не Alexa конечно, но на расстоянии до 5 метров процент верного попадания приличный. Главная проблема — речь из телевизора\колонок записывается вместе с командами и мешает распознаванию.