r/learnpython • u/Drazxie • Jun 10 '17
I am a self taught programmer developed my very own Jarvis, called Stephanie, an open source virtual assistant built to control and automate any task and so can you!
Stephanie is an open-source platform built specifically for voice-controlled applications as well as to automate daily tasks and hence imitating much of an virtual/personal assistant's job. It is written in python and I call it more as a framework than an application.
There are lots of amazing things about Stephanie, and I'd be listing few of them.
Beginner Friendly - The Ultimate goal of this project is to create a general awareness among all sorts of people irrespective of their career background to get them interested in 'building something cool', that's why installation is made quite simpler but not the simplest to help general public learn programming in a very different way where they could feel they are making something cool while learning the essence of programming.
Minimal Hardware Requirements, seriously, you got a machine? windows or linux? a speaker of any sort? headphone, headset and a mic which could be anything like inbuilt, bluetooth or just connect a freaking phone.
Privacy, Stephanie offers lots of engines to adjust your privacy as needed, in contrast to other commercial based applications which tracks all of your data (listening everything)
Difference, Now you must okay dude, but how is it different from siri, cortana or echo and other commercial softwares? Well first of all Stephanie is completely open source, even the algorithm which is used to predict the intent (I've written a paper on it which I would highly recommend to anyone interested in this link : https://slapbot.github.io/documentation/resources/algorithm ) is open-sourced so basically you are using a software which is community driven.
Modules, So since Stephanie is completely open-source, you can integrate it with lots of public/private API's to take the application to new level, don't believe me, check out some of it's functionality.
Let's take a brief look at social networks, shall we? How about twitter eh?
You: Hey Stephanie, Do I have any twitter Notifications?
Stephanie: Your latest tweet has been favorited by 20 people, whereas @rayhudon mentioned you stop swooning over real madrid, they ain't gonna win 3 CLs consecutively, that's nuts.
(You can tweet something with the help of stephanie too, similarly I won't be talking about each one, since there are too many functionalities but you are welcome to check it for yourself.)
Okay so How about facebook? Do you ever forget your friends birthdays? well fear not, Now Stephanie got your back.
You: Hey Stephanie, Do I have any birthday reminders?
Stephanie: Oh Yes! your friend Karan Sachdeva has a birthday today.
Wanna write something in facebook as a wall post to show off among your friends? Cmon be humble dude.
You: Hey Stephanie, I wanna do a status update on facebook.
Stephanie: So, What's on your mind?
You: How can mirrors be real if our eyes aren't real.
Stephanie: 'How can mirrors be real if our eyes aren't real.' has been put up as wall post.
Now again this is just social networks, there are many more modules to work with, for instance: Ever wanna note something on fly? no worries mate, your Evernote Account got your back with it's integration, or maybe you want your unread emails? gmail is there for you, weather updates? forecast? latest news* information, forget to wish your mom on mother's day? sync your google calendar man. Are you a movie-freak? Jesus, imdb got you, Restaurants suggestions? Wikipedia? Quick Answers to general IQ questions? And My personal favorite Football Module which has alone more than 30 functions to let you daydream your favorite football team or league.
DEVELOPER FRIENDLY, Now this is the real deal right here, The reason I call it Jarvis v2.0 is because I believe Stephanie more as a framework than an application and with it's extensive documentation and a really cool interface you can built one of the most complex and intricate programs with it, Honestly, I feel a person can even create an enterprise based application from it. The Developer guide written is basically for programmers to guide them on the process of how to write their own modules and extend the functionality of Stephanie, wanna sync up your Quora account? Reddit? Some obscure internet forum? Control your Air Conditioner? Door handles? Wifi Routers? Cool just write your own module and integrate with Stephanie using a really nice interface which gives you all the functionality needed to built it out of the box.
Or maybe you just wanna integrate some other guy's written module? Awesome with a community and easy integrate methods, do whatever with Stephanie, change it's name to Munni or stick with the current one, It's 100% customizable and the decision is in your hands.
Finally, this is a video where I kind of explain about Stephanie, with few demonstrations if anyone is interested and doesn't wanna read up this post.
https://youtu.be/Pp5dXbWZsrU?t=1m40s
And at the last, the link to main website to know more about it :- https://slapbot.github.io/ As well as the link to algorithmic paper : https://slapbot.github.io/documentation/resources/algorithm/
Github repo of Stephanie: https://github.com/slapbot/stephanie-va Github repo of Sounde: https://github.com/SlapBot/sounder
8
u/MrWm mrwm Jun 11 '17
So just wondering. how is this different than Jasper…? I'm not trying to be cynical or offensive, but it seems to me that this and Jasper are almost the same things.
4
u/Drazxie Jun 11 '17
Yes and I have mentioned them in Credits,
Jasper is one of the few open source virtual assistants that works in Rasberry PI, the lads which built has done a really good job, even though Stephanie is written from scratch, few good design patterns were used from their application, I was inspired by some of their modules and have used somewhat a similar way of documentation. I think the only place where stephanie outskills the Jasper is it’s intricate algorithm for intent recognition, more modern modules, a more framework rather application approach, different configurations, engines and so forth, and easy to work, without a need of any hardware other than minimalistic speaker and mic.
As you can see, The folks at Jasper are amazing, But the application was built for Rasberry PI while Stephanie, uses completely different intent-recognition system, (Sounder) and is written in sections, audio managers, text managers and so on, So anyone can take that section and use it like they need, Stephanie is built much like Django, where even the internal API is kind of like an interface which connects different plugins (managers) And Yes Stephanie is written from scratch with lots of different features and the way it works.
3
Jun 11 '17
Can I change her name? =P
2
u/Drazxie Jun 11 '17
Yes, there is an extensive documentation to assist you step by step! But yeah, in config.ini file. you can change the assistant_name to anything you desire, but this program is written efficiently for Stephanie, so make sure you don't pick any stop words, other than that you can do anything.
4
u/millicow Jun 11 '17
Awesome with a community and easy integrate methods, do whatever with Stephanie, change it's name to Munni or stick with the current one, It's 100% customizable and the decision is in your hands.
hmm, no I don't think so /s. yes lol you can
1
2
u/Nucky76 Jun 11 '17
How long ago did you start coding? Did you begin with python?
At what moment did you feel comfortable with python where you transitioned from practice to development?
1
u/Drazxie Jun 11 '17
Actually I did an AMA recently where I answered lots of similar questions, you can take a look over here at : https://www.reddit.com/r/IAmA/comments/6ghedy/iama_self_taught_programmer_developed_my_very_own/
25
7
1
u/Geohump Jun 11 '17 edited Jun 11 '17
I was glad to hear that you are concerned about privacy.
Unfortunately your project does not have any.
Because you are using Google's speech engine, everything that people say through your system will be recorded and kept in the usual Google pile of data.
And if I'm not mistaken, each person will need to have their Google account at the event logged in in order to use the Google speech API.
So basically everything they say and do, every command they give or request they make to your system will be handed over to Google. So there is no more privacy with your system that there actually is with any of Google's direct systems.
6
u/Drazxie Jun 11 '17
Nope, check the above comments.
Yes unfortunately there are no other viable options BUT, this google is entirely different from Google Cloud, it's an old API, which doesn't requires YOU to give any prior API token, there is a default one setup in the library itself. So google can't possibly recognize you since none of your information is linked to your account. And, Stephanie does provides Sphnix service, though it needs to be installed by the user, but the thing is that it's performance is awful, and even if you train your own data (voice), getting a decent performance is a really hard job. And there are no other good open-source speech-recognition programs, but again as I said google web engine is pretty good if you wanna get a nice experience without getting yourself recognized specifically through an account.
2
u/drunkcatsdgaf Jun 14 '17
So google can't possibly recognize you since none of your information is linked to your account.
This is a wild assumption that will get you in trouble. Google is pretty good at fingerprinting, regardless of an access token.
2
3
u/FlippngProgrammer Jun 11 '17
I am slightly new to python but have a stronger background in Java what should I learn in order to make something like this and what you are doing because I would really like to do that.
0
Jun 11 '17
[deleted]
17
u/ThatGuyWhoLikesSpace isaiahdbarry Jun 11 '17 edited Jun 11 '17
Whatever you do, make sure to include this in you source code:
if is_skynet == True: is_skynet = FalseEDIT: Finally, it's formatted as code.
5
u/Drazxie Jun 11 '17
When you give Stephanie the command, to quit the application, i.e.
Hey Stephanie, You're fired.
Her response is,
I'll come back stronger.
0
Jun 11 '17
[deleted]
1
u/Drazxie Jun 11 '17
No, But yeah after couple of references it's second on my watch list just behind, "The Good Will Hunting".
0
Jun 11 '17
[deleted]
2
u/Drazxie Jun 11 '17
To be honest, it will really simple to integrate, just use a simple print statement on the response alongside the speak method! Yeah! I will try doing that!
19
u/searchingfortao danielquinn Jun 11 '17 edited Jun 11 '17
It's an impressive project with very accessible code (though I have reservations about your 1-3 letter class attributes). I just have one concern.
Correct me if I'm wrong, but from a quick scan of the code, it looks like Stephanie's wake word is processed by Google, meaning it's sending a constant stream of all audio in my home to them. This would be a deal breaker for me.