Short Bytes:In this article, I’m sharing the efforts of a programmer to create his own python-powered personal assistant. Using open source libraries for text-to-speech conversion and speech recognition, he describes a way to create a personal “Jarvis”.

Python is one of the most popular programming languages that people should consider learning (get started here) and it comes with several choices to get started on your own Jarvis project. There are many open libraries for speech recognition and synthesis available in Python. Note that you should choose them wisely as many of them don’t function anymore with newer versions of Python.

personal assistant jarvis

In a blog post, programmerGurwinder Gulatishared his quest to make a Python-powered personal assistant for himself in 2016. He calls his AI assistant Samwise and explains the coding process in three parts:Jarvis’s Mouth, Jarvis’s Ears,andJarvis’s Brain.

As the name suggests, Jarvis’s Mouth deals with text-to-speech conversion process. While many Python libraries are available that offer voice recognition and speech synthesis, Mr. Gulati chose to move ahead with pyttsx — an offline, free and open source resource. It’s also updated to work with Python 3. To use it, you need to install JPercent’s version ofpyttsxby running the commandpip install pyttsx.For Windows, you should installPyWin32and Microsoft Speech API.

Article image

Get The Best Deals on Python Programming Here

For speech recognition/Jarvis’s ears, you need to useSpeechRecognition. This great resource offers the freedom to use Sphinx project to convert the audio input into a text. you may also use Google services and Wit.ai to do the same with the help of SpeechRecognition.

Now that you’ve got everything you need, let’s take a look at Jarvis’s Brain which is basically the code written by Mr. Gulati. You can assemble the above-mentioned resources and libraries to create your own AI assistant.

The code shared below is pretty straightforward and you can get things done after few hours of work and research. Take a look:

Did you find this Python-powered personal assistant project interesting? Tell us your views in the comments below.

If you are willing to excel in Python programming, don’t forget to check out this exclusive bundle:

Choose your own Python programming deal–