10 ms·
Leon: Open-source, self-hosted personal assistant
- eterps 4y agoWhat are some obvious use cases for something like this? I really have trouble imagining what you would use it for.
- hackcasual 4y agoMost of my 30 something friends have ditched their Alexa's and Google assistant devices because of concerns around security and privacy. The ability to say "set a timer for 30 minutes" is nice, but not enough to invite always on microphones into private spaces
- kvirani 4y agoWait what. When I hold the main button on android and say exactly that, it means I have an always on microphone??
- qbit42 4y agoThe "always-on" microphone feature is used to listen for "Okay Google", if you have that enabled.
- kvirani 4y agoI see. So you can still use these assistants without the privacy concern then. So why abandon?
- revolvingocelot 4y agoThat's just one of several privacy concerns. It's possible to parse voice locally, as in TFA and eg Mycroft('s open source, self-hosted version, anyway), but for "some reason" mainstream assistants don't do it. Sure, you can hold a button, and Google will only hear about your timer request and nothing more, but some people find the idea of Google knowing when you're setting timers to be upsetting. Or at least worthy of avoiding.
- vineyardmike 4y agoThey do actually do on device processing now… Siri, G Assistant, Alexa, Bixby, Sonos all perform at least some locally. It seems the major issue is large dictionaries (eg music libraries) or complex queries. Most had an article about how basic features (times, smart home) work entirely on device. [1] https://www.theverge.com/2021/6/7/22523438/apple-iphone-siri-on-device-processing-ios-15-wwdc-privacy https://www.theverge.com/2021/6/7/22523438/apple-iphone-siri... [2] https://appleinsider.com/articles/19/05/07/google-assistant-response-speed-getting-improved-by-on-device-processing https://appleinsider.com/articles/19/05/07/google-assistant-... [3] https://www.amazon.science/blog/on-device-speech-processing-makes-alexa-faster-lower-bandwidth https://www.amazon.science/blog/on-device-speech-processing-... [4] https://www.xda-developers.com/samsung-bixby-will-speed-up-responses-with-on-device-processing/ https://www.xda-developers.com/samsung-bixby-will-speed-up-r... [5] https://www.engadget.com/sonos-voice-control-music-assistant-170028950.html https://www.engadget.com/sonos-voice-control-music-assistant...
- mod 4y agoWhen my internet is out, Alexa won't even listen to me (besides her name)
- GekkePrutser 4y agoSame with Siri (Homekit Mini). It won't even answer a question that doesn't need the internet like the time.
- pseudalopex 4y agoDo any of them have a setting to enforce on device processing only?
- vineyardmike 4y agoSonos claims to be on device only. It’s not a general purpose assistant though
- deleted 4y ago
- MikeTheGreat 4y agoDisclaimer: I don't have one of these and don't particularly want one. The privacy concerns kinda creep me out. That said, I've been to friends homes and seen them use it. As far as I can tell the primary use case for these things is to be <random place in your home> and then just say out loud "Alexa, set a timer for ....". I've heard that you can order stuff from Amazon also using your voice. I think a third use case starts with "Alexa, tell me a joke". I'm assuming that there's other things you can do with these (and would love to know, if anyone's willing to share). So - if the solution to the privacy concern is to walk over to the device and push a button then that seems to remove most of the usefulness of the device. Speaking as someone who doesn't want one / doesn't have one of these things I can totally see how eliminating the "voice control from anywhere" feature leads to opting out of it. (When I'm walking around my home I've always got my phone on me (which, to be fair, has a bunch of privacy concerns too) so I can more easily set a timer / buy something on Amazon / Google for jokes by fishing my phone out of my pocket and then using that, rather than walking over to push a button.) (The "what else can you do with these" is a genuine question - if people are comfortable sharing I'd love to hear what you can do with these)
- hackcasual 4y agoThere's a lot of little use cases. Hand free cooking stuff (set a timer, home many tablespoons in a pint). Device control, faster to turn off a TV with voice than dig for the remote, or play a playlist/skip songs. None of those really save that much more time than the old fashion way, so concerns about privacy mean things get done the old way. I know some people like having them in if they have frailty or mobility concerns, which is probably the only really new usecase.
- Louistiti 4y agoDefinitely. We can think of connecting such basic skills with more advanced skills too. The fact that Leon has a modular architecture makes it very flexible. We just need to let our imagination drives us.
- mod 4y agoI have Alexa, although I'm going to remove her and replace with a locally-hosted thing. I've tied mine in with home automation stuff. So I can turn on and off lights using voice, even if I'm not at home. I sometimes forget to turn off my workshop and I can do that from anywhere. I'd like to figure up a way to reset my internet, because I access cameras, and it goes out sometimes. I'm very sure this can be done. I also use her for weather, although I'm annoyed about some of her limitations there, and I intend to get exactly what I want by coding. I want to be able to ask things like "when will it rain next", but Alexa can't do that. She can also do reminders in a week or whatever, I use that some. And I ask very simple questions that she can query Google for, but honestly she's terrible at it. I also think she's too verbose, even with verbosity turned down. She just goes on and on sometimes workout being asked--like instructions on resetting the routers if she can't contact Amazon. I also try Google assistant and Bixby. I use my watch for a lot of the things you said you use your phone for. Anyway I'm not happy with any of them. I plan to work a bunch on some skills as my next project, after the current one is done.
- bee_rider 4y agoIf I have to hit a button to activate the voice assistant, that removes use-cases like "my hands are full but I want to turn on the smart lights" and "I'm cooking and want a timer, but my hands are too dirty." These are the use-cases where the tool really shines because it has no competition. Without such a use-case, the tool gets put in the back-of-mind. Sure it might be marginally easier to use than swiping and poking, but my mental model of using the phone is already swiping and poking.
- Havoc 4y agoThe wake word is generally processed locally but anything subsequent is usually sent to cloud
- robertlagrant 4y ago> my 30 something friends That's a lot of friends! Good job.
- nell 4y agodad, is that you?
- vardhanw 4y agoI naturally parsed it as he has some friends who are around 30 years old. I am possibly wrong.
- jraph 4y agoI think this is the right interpretation and you are replying to a joke taking advantage of this ambiguity. Your sibling nell is probably (jokingly) meaning that this is a joke their dad could have made.
- tensor 4y agoToo bad they probably all still have phones then.
- nextaccountic 4y agoPersonal assistants can really make a difference to people with disabilities
- eterps 4y agoThat's an excellent point, maybe something that should be addressed on the site.
- Louistiti 4y agoYes. I still did not figured out how exactly, any thought?
- nextaccountic 4y agohttps://www.cuinsight.com/how-voice-assistants-can-benefit-people-with-disabilities/ https://www.cuinsight.com/how-voice-assistants-can-benefit-p... People with limited or no use of hands may use voice assistants, as may people with limited or no sight
- bergenty 4y agoWhen I used to use Alexa there were a lot of unexpected things that came up and I used it atleast 15+ times a day. Things like what’s the weather like, what time is it, set a timer, unit conversions, turn on/off lights or appliances, when is it going to rain, factual google information, when was someone born, what’s the sports scores, I like trivia so it could ask you questions while you were lounging around etc. and so many more things to be honest. I stoped using it like 3 years ago though, can’t have an always on speaker in my house that sends all its info back to Amazon, no matter what assurances they give me.
- afavour 4y agoI have both Google and Apple smart assistants in and around my home. I estimate 80% of that usage is to check the weather or set a timer. It would probably be great to not depend on some inscrutable listening device to do so.
- cortesoft 4y agoMy main usages for a voice assistant is adding items to the grocery list when I see something is missing in the kitchen, playing music, asking the weather, and timers.
- el_don_almighty 4y agoSailboat - My wife and I want a solution for our sailboat that allows for intelligent vocal control of ship systems. Quickly launching a series of activities with simple verbal commands or receiving verbal updates on conditions would be amazing. Easy things like automated voice capture to text for log books and maintenance would be helpful. "Oil level at 100%, Oil quality good, coolant level 100%, coolant quality good. Schedule oil change at 1500 engine hours." All of this must be done WITHOUT a constant internet connection.
- malermeister 4y agoHow does this compare to some other open source, self hosted assistants? rhasspy comes to mind, but i believe Mycroft can be self-hosted too.
- hungryotter 4y agoI've tried to self host myfcroft but after tinkering with it for about 3-4 hours I gave up. They provide little to no information for self hosting. Sure, you can use their pre-built docker image but you still have to create an account in their cloud and connect to it. And their privacy policy is not so great imo.
- malermeister 4y agoI believe they hired the rhasspy dev though and he's been trying to change this for the better. We'll see if he gets anywhere...
- deleted 4y ago[deleted]
- joestrong 4y agoI did figure out how to do it at one point. I think you had to remove some default config from a JSON file to stop it connecting to their cloud. You still had to query Google directly for the STT though
- hipitihop 4y agoWithout detracting from OP's efforts, also see Project Alice. https://github.com/project-alice-assistant/ProjectAlice https://github.com/project-alice-assistant/ProjectAlice It is self hosted, offline by default, with options to use various ASR and TTS engines, some online, depending on your own privacy, performance or quality choices. It's quite mature and the maintainers are aiming for a 1 0.0 version release. I have been running it as the primary voice interface to my home automation system for years. As someone else said elsewhere, there are a few assistants around now. Perhaps there is some benefit for sharing of resources too, as all struggle for contributors.
- inezk 4y ago"Leon uses AI concepts, which is cool." - somehow this really discouraged me from looking deeper into it.
- denton-scratch 4y ago> somehow this really discouraged me from looking deeper into it. I was also discouraged by that remark. But I've never had (or even used) Alexa or Siri or whatever; they're a cool idea, but I'm not prepared to rely on either of those sevice providers. So I'm interested.
- ianbicking 4y agoIt seems to be written by a young guy, English is his second language, and he's excited to be learning different technologies along the way.
- titaniczero 4y agoEnglish is his second language, I'd cut him some slack and create a PR to fix it and help him instead of criticizing.
- deleted 4y ago[deleted]
- pvg 4y agoPlease don't pick the most provocative thing in an article or post to complain about in the thread. Find something interesting to respond to instead https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- Tao3300 4y agoTo be fair, that's not the most provocative thing in the article, so it's okay.
- Louistiti 4y agoHow can I improve it?
- yupis 4y agoThanks. Looks awesome.
- mdaniel 4y agoThis probably was submitted due to their recent blog activity, in which they talk about their NLP improvements: https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-beta-7/ https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-b...
- Louistiti 4y agoYes it is. Thanks for pointing that out.
- _krii 4y agoLooks like quite a lot of marketing put into this open-source project. Heavyweight glossy website with trendy TLD, emojis everywhere. Is this kind of thing typical in the JS world in particular? Seriously asking. I'm trying to figure out what they are selling me, or what megacorp they are associated with, but I don't see it yet.
- yewenjie 4y ago> Is this kind of thing typical in the JS world in particular? Yes, pretty common in the frontend world.
- IMcD23 4y agoAnd yet, I set out to find what this thing can do. I read the README. Today, the most interesting part is about his core and the way he can scale up. He is pretty young but can easily scale to have new features (skills). You can find what he is able to do by browsing the packages list. Sounds good for you? Then let's get started! The packages list is a dead link. https://github.com/leon-ai/leon/tree/develop/packages https://github.com/leon-ai/leon/tree/develop/packages
- kenny87 4y ago> The packages list is a dead link. https://github.com/leon-ai/leon/tree/develop/packages https://github.com/leon-ai/leon/tree/develop/packages From the blog ... "As of now, 'module' and 'packages' no longer exist. Instead, they’ve been replaced by 'skills'." New link is https://github.com/leon-ai/leon/tree/develop/skills https://github.com/leon-ai/leon/tree/develop/skills
- jimktrains2 4y agoAll those folders just contain a single json file with the name of the skill category in it? I don't see any actual features?
- revolvingocelot 4y ago
- deleted 4y ago[deleted]
- Vaslo 4y agoWhy would you take this over Mycroft? Is there a difference?
- diroussel 4y agoDo you have a problem with that, Dave.
- GekkePrutser 4y agoI don't know how well Leon works but Mycroft is not running locally on your own server. It's still a cloud service. I believe it can be run locally but it's very complex and not well supported. At least this was the state last time I looked at it. For this reason (and their failed Kickstarter) I've never really been into Mycroft. After all it's kinda the same as Alexa/Siri just a slightly more trustworthy party when they say they're not using your data. I'm just not interested in alternatives until they can run fully locally (not necessarily on device, on a local server or docker is fine) If this Leon does what it says on the tin it might be just the thing for me.
- vorpalhex 4y agoMycroft does run on your own server. It allows you to use the Google text to speech API for more natural voices, which is a cloud product. It is a yaml config to use on device tts instead. Install is flashing an sd card.
- GekkePrutser 4y agoI thought the detection engine was too complex and not fully open? I remember them looking at Mozilla DeepSpeech or something but that being one of those never ending projects. I was asking about self hosting on their forum and they were like "just use our hosted service, you can trust us". That's not different enough from Apple/Amazon/Google/Microsoft so I dropped it. But like I said this was a few years ago. Never looked again since.
- Louistiti 4y agoLeon can fully run on your own device, it includes the NLP, STT, TTS and so on. More offline STT/TTS solutions are coming up though.
- fxtentacle 4y agoself-hosted? "You are in control of your data. Leon lives on your server" Speech-to-Text: Google Cloud, IBM Watson, Coqui STT, Alibaba Cloud (coming soon), Microsoft Azure (coming soon) So the AI assistant lives on my server, but if I want to have good quality speech recognition, everything I say is sent through a US cloud service. The only offline option, Coqui has a 7.5% word error rate [1] on LibriSpeech test clean, which is worse than Mozilla Deepspeech 2 from 2016 [2]. State of the art would be around 1.4% [3], meaning 81% less errors than Coqui. [1] https://coqui.ai/blog/stt/deepspeech-0-6-speech-to-text-engine https://coqui.ai/blog/stt/deepspeech-0-6-speech-to-text-engi... [2] https://paperswithcode.com/paper/deep-speech-2-end-to-end-speech-recognition https://paperswithcode.com/paper/deep-speech-2-end-to-end-sp... [3] https://paperswithcode.com/paper/pushing-the-limits-of-semi-supervised https://paperswithcode.com/paper/pushing-the-limits-of-semi-...
- spullara 4y agoThere aren't any good speech-to-text models that are open source. If you think there is one, please reply with a link. The cloud ones are far superior.
- jjulius 4y agoRight, and that's fine. The point is that if that's the case, it's incredibly disingenuous to say that you are in control of your own data if you use Leon.
- Louistiti 4y agoYou can choose what voice solutions you want to use. So you can choose the ones that run offline (which are the default ones).
- RussianCow 4y agoI don’t think the open source ones need to be superior to the cloud ones, or even as good. If they come close enough for the most common, let’s say, 80% of use cases, that’s good enough for many people.
- hammyhavoc 4y agoChecked out the repository's homepage. Is it just me or do other people hate the buzzword of "virtual brain"? Seems like everything is being described as that or a "second brain" these days.
- pvg 4y agoA thread from 2019: https://news.ycombinator.com/item?id=19152561 https://news.ycombinator.com/item?id=19152561
- afro88 4y agoBut what can it actually do?
- deleted 4y ago[deleted]
- Tao3300 4y agoScale!
- Louistiti 4y agoAt the moment, the main focus in on the core. "Once the official release shipped, the big focus will be to build many skills along with the community and cover most of the basic cases and beyond of existing closed source assistants" You can find more here: https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-beta-7/#whats-next https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-b... and there: https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-beta-7/#important-notes https://blog.getleon.ai/a-much-better-nlp-and-future-1-0-0-b...
- AlphaWeaver 4y agoAm I the only one freaked out by the focus on a Leon instance setup unnecessarily framed as being "born" in their documentation materials here? > $ leon create birth > At this stage, Leon is born and can already start to run via this command: [...] It seems like an unnecessary anthropomorphization.
- deleted 4y ago[deleted]
- candiddevmike 4y agoDoes it make you twice before you kill Leon or its children?
- teaearlgraycold 4y agokill -9 leon
- Louistiti 4y agoWell, I just think it is fun.
- zxexz 4y agoSure, anthropomorphization is unnecessary, but IMO it’s kinda cute. It made me happy. I’m not equipped with the biology to give birth myself, so it was nice to be able to give birth virtually to a son. A son that could talk to me before he could walk. He hasn’t had much luck yet with walking.
- diceduckmonk 4y agoThose are beautiful animations / visual graphics on the landing page. Awesome job!
- Louistiti 4y agoThank you! I try to express some thoughts by paying attention to the visual aspect of Leon.
- leonroy 4y agoUh-oh, did you have to call it Leon?
- protomyth 4y agoCan it be shared by a group of people? Is it possible to extend it with custom actions like answering questions from local data sources or calling an internal API?
- Louistiti 4y agoYes it is possible to create skills actions based on the core. It is the main strength of Leon. For the sharing part, I will develop a platform to centralize skills so it will be easy to share skills with the community. A bit similar as the npm registry.
- jacooper 4y agoIts still not clear what you can do with it. There are no examples at all. Can it(he) show me the weather ? Execute a shell script? For example to update a server ? Trigger a webhook ? A lot of details are lacking.
- deleted 4y ago[deleted]
- Wronnay 4y agoReminds me of https://github.com/jasperproject/jasper-client https://github.com/jasperproject/jasper-client
- Louistiti 4y agoJasper can be considered as his dad.
- iamsrp 4y agoFWIW the thread about my cheap & cheerful effort from a while back: https://news.ycombinator.com/item?id=25718392 https://news.ycombinator.com/item?id=25718392 Nice to see all the other efforts. There are a decent bunch now. Go, as they say, team :)
- mod 4y agoHi, is this still active? I'm looking to mess around with one of these. I'm particularly interested in programming some specific weather Services, like telling me the next time rain is forecasted. I see you mention weather in the README under Services, but it is not listed as a current service module. Is that something you need help with?
- iamsrp 4y agoSimple weather service added: https://github.com/iamsrp/dexter/blob/master/service/weather.py Feel free to hack on it, if you're still game.
- iamsrp 4y agoStill active but rather sporadic. (Time is very much at a premium these days alas.) I never quite got around to doing a weather module but, if you fancy trying to put one together, it should not be too hard by cargo-culting from the other services. If things are confusing then open a problem request and I will look to make them less so.
- Louistiti 4y agoI started to build Leon in late 2017 on my free time. There is no big organization behind Leon AI, just me and more with the community later. At the moment the whole core is being rewritten, many new features are coming up. Please do know that the main strength of Leon is about the core and not the skills yet. Once the official release shipped, with the community we will all focus on building new skills by extending from the core and let Leon makes meaningful things. Among the upcoming things, new offline STT/TTS solutions will take place. It's going to take some time to build a respectable personal assistant that respects our privacy, but we are getting there. If you have any question or just wanna chat, feel free to join us on Discord.
- johnebgd 4y agoThanks for your work on this. Maybe it’s time to introduce a paid license to support the project and even offer consulting hours to get professional support?
- Louistiti 4y agoThanks for saying. I have some ideas in mind, like creating some courses specific to Leon. In the meantime, it is possible to support via GitHub Sponsors: http://sponsor.getleon.ai http://sponsor.getleon.ai
- santimoller66 4y ago[flagged]
- Corrado 4y agoI think this would be awesome to develop a Tesla "skill" for. Since it's self-hosted, I don't have to worry about sharing my Tesla credentials with a 3rd party. I tried to create a quick and dirty Alexa skill to do things like check on the state of charge and lock the car, but didn't want to climb the mountain of storing "secrets" in Alexa/AWS. Keeping them local in Leon sounds much better. I would also like to use Alexa to control my doors (garage, house, etc.) but making that available to world doesn't sit right with me. But with Leon I don't have to worry about someone hacking my Alexa account, or even sharing my credentials with a 3rd party "skill".
- Semaphor 4y agoMeanwhile, I have Rhasspy set up to do basic stuff, but lack the availability of Pi Zero 2 W’s to use as satellites :(
- Havoc 4y agoDo the microphones work well in a sat setup on rhasspy?
- shafyy 4y agoLove that you have a Gitpod setup - make trying out and contributing to open-source projects so much easier!