r/programming • • Jul 18 '21

I made a virtual assistant using python

https://youtu.be/Sl3ZKIWZ1mY
15 Upvotes

7 comments sorted by

View all comments

6

u/iamjkdn Jul 18 '21

You want to share how you did it?

7

u/goodudetheboy Jul 18 '21
import virtual-assistant as assistant
assistant.setName('Sylvie')
assistant.start()

/s

1

u/backtickbot Jul 18 '21

Fixed formatting.

Hello, goodudetheboy: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

-1

u/Mr0BN0XI0US Jul 18 '21

First of all, I imported all necessary modules. Then, I set up engines for speech recognition and text to speech. Then I made a loop so that it keeps on listening unless 'quit' is said. Then, I used tons of if....elif....else to give some logic. It does lack so many things, which I can't fix (for now) as I am a total beginner. But I think I will be able to turn this to a completely fine project some day.

If you don't understand what I said, you are always welcome to see source code from the video description.

10

u/double-you Jul 18 '21

Twitches in suppressed sarcasm

1

u/heaven00 Jul 18 '21

look up mycroft for a better design and understanding how to build one at production scale

0

u/[deleted] Jul 18 '21

[deleted]

1

u/heaven00 Jul 18 '21

they do have a local setup thread some where but I meant it as a way to look at architecture design and how differemt components are interacting with each other.

also, I did make an assumption about OP while suggesting that I think he is starting out in the area and looking and good architectures would generally help him get better