Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Input Devices Build

Building Your Own Open Source, Privacy-Protecting Voice Assistant With A Raspberry Pi (pcmag.com) 42

PC Magazine's "tech nerd" Whitson Gordon writes that "Once you start using a smart speaker to set reminders, play the news, or turn the lights on, it's hard to go back."

But if you want the convenience of voice control without the data-collecting tech giant behind the scenes, an open-source project called Mycroft is a great alternative. And you can run it right on a Raspberry Pi.

Mycroft is a free, open-source voice assistant designed to run on Linux-based devices... Mycroft has been around for quite a few years, but it's recently gained a bit more notoriety thanks to privacy concerns surrounding data collection at Amazon and Google. Unlike those assistants, Mycroft only collects data if you opt in during setup. And for the users who do opt in, Mycroft promises never to sell your data to advertisers or third parties -- instead, it only uses it to help developers improve the product. Mycroft even uses the privacy-focused DuckDuckGo as its search engine instead of Google when you ask for information.

Mycroft makes its own smart speaker called the Mark I, though it's currently sold out with a new Mark II (video here) on the way. However, since the project is open-source, you can install Mycroft on just about any Linux machine, including the Raspberry Pi (thanks to a pre-made build called Picroft). Using Mycroft on the Pi is free, but you can also subscribe to a $1.99-per-month plan to help support its development -- you'll even get a few goodies, like other voices that sound more lifelike than the default robotic voice.

This discussion has been archived. No new comments can be posted.

Building Your Own Open Source, Privacy-Protecting Voice Assistant With A Raspberry Pi

Comments Filter:
  • Serious addiction (Score:5, Insightful)

    by DogDude ( 805747 ) on Saturday December 14, 2019 @07:23PM (#59519522)
    Once you start using a smart speaker to set reminders, play the news, or turn the lights on, it's hard to go back

    If it's "hard to go back to" flipping a light switch with a finger, then I think the speaker has some serious addiction issues that might need to be addressed by a professional.
    • Re:Serious addiction (Score:4, Interesting)

      by Voyager529 ( 1363959 ) <voyager529@yahoo. c o m> on Saturday December 14, 2019 @08:24PM (#59519632)

      Once you start using a smart speaker to set reminders, play the news, or turn the lights on, it's hard to go back

      If it's "hard to go back to" flipping a light switch with a finger, then I think the speaker has some serious addiction issues that might need to be addressed by a professional.

      It's not that. It's being able to say "turn off all the lights" before you walk out the door, being sure that if any lights were accidentally left on, they aren't. It's being able to say "Play Lindsey Sterling" without having to open an app or grab a CD. It's being able to ask "what's the weather like in Chicago on Wednesday" and getting an answer. It's being able to say "set a 20 minute timer" when you're cooking and your hands are full of cake batter, or "add butter to my grocery list and remind me to go to the grocery store tomorrow".

      Yes, these are all conveniences. No, none of them are super difficult to do without a smart speaker. I don't own one myself, half because of what you said, and half because of the privacy concerns listed in TFA. If Mycroft does manage to make a useful, self-hosted alternative to Alexa, I'm very interested.

      Finally, if you're still concerned about practical applications, I can't wait for a voice activated IVR that isn't worse than pressing buttons for a menu. Apple, Amazon, and Google don't seem to want to capture this market, instead opting for the automated Google assistant instead. If, however, Mycroft ends up improving its natural language recognition and can integrate with PBX systems, that could really be a game changer.

      • imagine if that same device had a copy of the Wikipedia. Also, imagine if that same device could hunt down answers to questions given to it as tasks?
        • by Shaitan ( 22585 )

          Not particularly useful. I mean every so often you might have it do a unit conversation or something but mostly you don't use the voice assistant for searches outside demoing it to others. You are just so much better at searching for information than the AI that it isn't worth it.

      • by Lennie ( 16154 )

        Google assistance is doing automated calls.

        • by cusco ( 717999 )

          You can also link your phone book to the Echo and it will make calls for you as well. "Alexa, call Shari" will search your phone book and call her. (I assume by "automated" you mean that rather than telemarketing calls.)

      • by Shaitan ( 22585 )

        "It's not that. It's being able to say "turn off all the lights" before you walk out the door, being sure that if any lights were accidentally left on, they aren't. It's being able to say "Play Lindsey Sterling" without having to open an app or grab a CD. It's being able to ask "what's the weather like in Chicago on Wednesday" and getting an answer. It's being able to say "set a 20 minute timer" when you're cooking and your hands are full of cake batter, or "add butter to my grocery list and remind me to go

    • It is hard(, ready) to go (bare)back!

      It's an iPeople fetish thing, that normies don't understand.

    • by Shaitan ( 22585 )

      You are skipping things... like having to get up. For instance you've walked in the room, your spouse is in the bathroom, you collapse on the bed and your spouse climbs in bed without turning off the light you left on for them!!! What are you going to do? GET UP???!!! Hell no, you tell the voice assistant to turn off the light. Similarly you've settled in to watch a movie and some latecoming jerk didn't turn off the light while grabbing snacks and then plopped down. What do you do? GET UP???!! Hell no. Voic

  • by klingens ( 147173 ) on Saturday December 14, 2019 @07:33PM (#59519536)
    Mycroft might be open-source, but only in the parts, the parts that are relatively easy and unimportant. The parts one could easily replicate in a project. At its core, Mycroft works exactly the same as Alexa as it relies on some serverfarm elsewhere to do the actual speech recognition of the commands. Just like Google assistant, Siri or Alexa. That means you simply changed one big data-collecting company violating your privacy by sending all your interactions to them, for a small data-collecting company violating it by sending all interactions to them. Where is the improvement?

    To use this fabulous open-source software you need a mandatory account at the mycroft.ai website. There is no way to actually run the speech recognition yourself. Who owns mycroft ai? A company named Middlebrow LLC. And while they might make all kinds of promises, those promises are utterly worthless when they need to make a profit.

    The only voice assistant that actually protects your privacy is the one that completely fits in your cupboard at home without any internet connection. Even if you need a dual EPYC 32C 128GB server to run it. Everything else is the same privacy violation no matter if big evil NYSE listed multinational corporation or evil small corporation.
    • by KingRatMass ( 1448233 ) on Saturday December 14, 2019 @07:57PM (#59519576)
      There is a self-hosted model in their development roadmap. They've been working to implement it since last year. There is a forked version of the backend that is available on GitHub, it does not have the full functionality yet.
      • by rtb61 ( 674572 )

        They need to adjust their sales model. There should be free in domestic as part of the development model and the pay for secure private business services. They should not forget to promote and sell those services to government at all levels. They need secure voice services as well, they should even seek reciprocal development contracts with government, the government helps fund the development in exchange for those services becoming available, secure voice recognition, think fire fighters in the field or am

    • Just pipe /dev/$audioInput to /net/tcp/mycroft.ai/$somePath and vice versa. There you go!

    • Re: (Score:3, Informative)

      Hi there, I wanted to clarify a few things.

      Everything in Mycroft is open source and available on our Github except some of the premium pre-trained voice models. The code running on your device is not obfuscated in any way so you can verify that it is the exact code available in the open source repositories.

      By default it does require an account on our website to manage devices and access services. You can self-host the backend or an alternative like our community built Personal Backend as they are both also

      • I put money down for a couple for me and a couple to give away. I'm still waiting on the hardware. Care to comment?

        See previous [slashdot.org] posts [slashdot.org] from 13 and 22 months ago.

        Oh, and welcome to Slashdot.

      • From the post about Lingua Franca :

        Output can target written or spoken language - e.g. âoe1001â or âoeone thousand and oneâ.

        Why do I feel a need for number output in an INTERCAL-compatable number system - badly broken Roman numerals [wikipedia.org], for example. Though Sanskrit might be a good option too.

  • "Mycroft has been around for quite a few years, but it's recently gained a bit more notoriety thanks to privacy concerns surrounding data collection at Amazon and Google. Unlike those assistants, Mycroft only collects data if you opt in during setup. And for the users who do opt in, Mycroft promises never to sell your data to advertisers or third parties -- instead, it only uses it to help developers improve the product. Mycroft even uses the privacy-focused DuckDuckGo as its search engine instead of Google when you ask for information."

    Oh yeah and I wont cum in your mouth either!

  • Which of the Raspberry PI models have no CPU flaws, such as the ones in Intel CPUs? Which Raspberry PI is best for Internet access?

    (Posted to the previous Slashdot story about the Raspberry PI, also)
  • It wasn't clear from the the article if you could run your own back end server. If so, then this would be a big step forward for privacy. If, on the other hand, all of the audio samples get sent to the cloud (someone else) for processing, privacy will still be an issue and only as good as the promise of privacy. At least with the client being open source, it would be possible to validate that only audio after the trigger words are being sent to the back end.
  • by BAReFO0t ( 6240524 ) on Saturday December 14, 2019 @08:23PM (#59519628)

    ... already kills it for me.

    That the website ends in ".ai" (apparently, TLDs get dumber everyday), is another huge red flag.

    And while technically not necessary, I still find it werid, that I could not find anything explicitly ststing that it is local and offline on the front page or the about-mycroft page.

    Not that I am interested in something as cringy and cumbersome as a speech-controlled talking Spotlight search anyway. This is not the 80s, where film directors made us think that was cool. It more something for those Eternal iSeptember people who are just discovering "The Internet" (actually the WWW), and are as new to it as we were in the 80s.

    • To be clear, Mycroft does not by default run completely locally or offline. It is possible to do so, but requires you to run a range of services yourself which is beyond the average user. The speech recognition is still cloud based, as it requires more computing resources than the vast majority of people have or are willing to allocate, at least to process the audio in a reasonable time frame and with the accuracy required. Our more robotic sounding voices like British Male are generated on device, but the

  • Until I can run a local server to handle my smart assistant's back end tasks I will pass. And why do companies keep referring to these assistants as AI? There is nothing AI about running a bunch of IF ... THEN statements in code.
  • You don't even have to use Mycroft's online hosted speech to text translation, you can use KaldiSTT or other local hosted speech to text engine: https://github.com/MycroftAI/m... [github.com]

    You can end up with a completely offline solution.

  • How have they not been sued by Microsoft is beyond me. I'm sure their lawyers could make that case somehow. Also, unless it can sync with my phone, it's useless.

    • by chill ( 34294 )

      No. Mycroft, as in Mycroft Holmes, the older brother of Sherlock Holmes in Sir Arthur Conan Doyle's series of stories from the late 1800s.

      • From 1989-1997 I was with a software company called OSoft. We thought of it as Microsoft without the MICR, or Magnetic Ink Character Reader.
      • Did that need explaining to ... a slashdot user?

        Actually, yeah, it probably did, for a considerable proportion. Sad, but true.

        I think it's a great name, given the associations. I wish the project well. Since I'm not in the market for home automation at all, it's vanishingly unlikely that I'd ever need or use one, but it's still a good name.

If all else fails, lower your standards.

Working...