Schlagwort: Google Home Assistant

  • Hey Google! Meet Arduino Cloud

    Hey Google! Meet Arduino Cloud

    Reading Time: 3 minutes

    We’re excited to announce that the Arduino Cloud now supports Google Home™! This means you can now interact with your devices, simply through your Google Home Assistant: use voice commands, the Google Home app, or create new routines integrating Arduino solutions. 

    This new integration expands our ecosystem of compatible applications, which already includes Alexa. The process is similar, making it easy for you to connect your devices in the most natural way: just by talking!

    How to use Google Home with Arduino Cloud

    1. Program your device

    The first step is to create, configure and program your device in a way that it can be connected to Google Home. The process is very straightforward:

    1. Create and set up a new Thing, configuring the network and associating a physical device.
    2. Define your variables making sure that you choose from the Smart Home compatible ones. For example, if you have connected an LED strip to your board, add a “Colored light” variable.

    3. Create the sketch of your application and program your device.
    4. Configure your Smart Home Integration and set “Connect to Google Home.”

    Your device is now ready to be detected! Every variable will be detected as a new device in Google Home.

    2. Detect your device with Google Home

    The next step is to enable Google Home to detect and configure your device. For that, follow the instructions below:

    1. Wait until the board is connected to your network.
    2. Open your Google Home app, go to the Devices tab and click on “Add Device.”
    3. Select “Works with Google Home.”
    4. Select the “Arduino” action from the list, and follow the instructions to link your Arduino account if requested. 

    Next, you will be prompted to add your devices (there will be one device per variable). Simply select each device to associate it to a room.

    Congratulations! Your device is ready to use with Google Home.

    Use your Google Home-compatible speaker or mobile phone

    With the Google Home integration, you can now interact with any device connected to the Arduino Cloud using your Google Home-compatible speakers or the Google Home app. You can also include them in your Routines in Google Home Automations to help automate your tasks. Bear in mind that Arduino Cloud is compatible not only with devices based on Arduino or ESP hardware, but also with those programmed using Python, JavaScript or Node-RED.

    What projects can you set up with Google Home and Arduino Cloud? 

    Currently, the supported Google Home sensors are temperature and motion detection, and the supported actionable accessories are light, dimmable light, colored light, smart plug and smart switch. So, with the Arduino Google Home Action, you can turn on the lights in the living room, check the temperature in the bedroom, start the coffee machine, water your plants, find out if your dog is sleeping in the doghouse, and much more.

    The only limit is your imagination. Just try saying…

    “Hey Google, turn on the lights in my bedroom.”

    “Hey Google, what’s the temperature in the living room?”

    “Hey Google, turn on the coffee machine.”

    What is Arduino Cloud?

    Arduino Cloud is an all-in-one IoT solution that empowers makers to create, monitor and control their devices from anywhere with stunning dashboards and share their projects with anyone. 

    [youtube https://www.youtube.com/watch?v=27S-XI_zHQc?feature=oembed&w=500&h=281]

    Start with Arduino Cloud for free

    The Google Home integration with the Arduino Cloud is free to use. Make sure you have an Arduino Cloud account and explore our documentation if you want to learn more.

    And that’s it. It’s ready to use and it is free. You can explore the premium features for enhanced functionality.

    The post Hey Google! Meet Arduino Cloud appeared first on Arduino Blog.

    Website: LINK

  • Talk to your Raspberry Pi | HackSpace 36

    Talk to your Raspberry Pi | HackSpace 36

    Reading Time: 4 minutes

    In the latest issue of HackSpace Magazine, out now, @MrPJEvans shows you how to add voice commands to your projects with a Raspberry Pi 4 and a microphone.

    You’ll need:

    It’s amazing how we’ve come from everything being keyboard-based to so much voice control in our lives. Siri, Alexa, and Cortana are everywhere and happy to answer questions, play you music, or help automate your household.

    For the keen maker, these offerings may not be ideal for augmenting their latest project as they are closed systems. The good news is, with a bit of help from Google, you can add voice recognition to your project and have complete control over what happens. You just need a Raspberry Pi 4, a speaker array, and a Google account to get started.

    Set up your microphone

    This clever speaker uses four microphones working together to increase accuracy. A ring of twelve RGB LEDs can be coded to react to events, just like an Amazon Echo

    For a home assistant device, being able to hear you clearly is an essential. Many microphones are either too low-quality for the task, or are unidirectional: they only hear well in one direction. To the rescue comes Seeed’s ReSpeaker, an array of four microphones with some clever digital processing to provide the kind of listening capability normally found on an Amazon Echo device or Google Assistant. It’s also in a convenient HAT form factor, and comes with a ring of twelve RGB LEDs, so you can add visual effects too. Start with a Raspberry Pi OS Lite installation, and follow these instructions to get your ReSpeaker ready for use.

    Install Snowboy

    You’ll see later on that we can add the power of Google’s speech-to-text API by streaming audio over the internet. However, we don’t want to be doing that all the time. Snowboy is an offline ‘hotword’ detector. We can have Snowboy running all the time, and when your choice of word is ‘heard’, we switch to Google’s system for accurate processing. Snowboy can only handle a few words, so we only use it for the ‘trigger’ words. It’s not the friendliest of installations so, to get you up and running, we’ve provided step-by-step instructions.

    There’s also a two-microphone ReSpeaker for the Raspberry Pi Zero

    Create your own hotword

    As we’ve just mentioned, we can have a hotword (or trigger word) to activate full speech recognition so we can stay offline. To do this, Snowboy must be trained to understand the word chosen. The code that describes the word (and specifically your pronunciation of it) is called the model. Luckily, this whole process is handled for you at snowboy.kitt.ai, where you can create a model file in a matter of minutes and download it. Just say your choice of words three times, and you’re done. Transfer the model to your Raspberry Pi 4 and place it in your home directory.

    Let’s go Google

    ReSpeaker can use its multiple mics to detect distance and direction

    After the trigger word is heard, we want Google’s fleet of super-servers to help us transcribe what is being said. To use Google’s speech-to-text API, you will need to create a Google application and give it permissions to use the API. When you create the application, you will be given the opportunity to download ‘credentials’ (a small text file) which will allow your setup to use the Google API. Please note that you will need a billable account for this, although you get one hour of free speech-to-text per month. Full instructions on how to get set up can be found here.

    Install the SDK and transcriber

    To use Google’s API, we need to install the firm’s speech-to-text SDK for Python so we can stream audio and get the results. On the command line, run the following:pip3 install google-cloud-speech
    (If you get an error, run sudo apt install python3-pip then try again).
    Remember that credentials file? We need to tell the SDK where it is:
    export GOOGLE_APPLICATION_CREDENTIALS="/home/pi/[FILE_NAME].json"
    (Don’t forget to replace [FILE_NAME] with the actual name of the JSON file.)
    Now download and run this test file. Try saying something and see what happens!

    Putting it all together

    Now we can talk to our Raspberry Pi, it’s time to link the hotword system to the Google transcription service to create our very own virtual assistant. We’ve provided sample code so that you can see these two systems running together. Run it, then say your chosen hotword. Now ask ‘what time is it?’ to get a response. (Don’t forget to connect a speaker to the audio output if you’re not using HDMI.) Now it’s over to you. Try adding code to respond to certain commands such as ‘turn the light on’, or ‘what time is it?’

    Get HackSpace magazine 36 Out Now!

    Each month, HackSpace magazine brings you the best projects, tips, tricks and tutorials from the makersphere. You can get it from the Raspberry Pi Press online store, The Raspberry Pi store in Cambridge, or your local newsagents.

    Each issue is free to download from the HackSpace magazine website.

    Website: LINK

  • Marvellous retrofitted home assistants

    Marvellous retrofitted home assistants

    Reading Time: 4 minutes

    As more and more digital home assistants are appearing on the consumer market, it’s not uncommon to see the towering Amazon Echo or sleek Google Home when visiting friends or family. But we, the maker community, are rarely happy unless our tech stands out from the rest. So without further ado, here’s a roundup of some fantastic retrofitted home assistant projects you can recreate and give pride of place in your kitchen, on your bookshelf, or wherever else you’d like to talk to your virtual, disembodied PA.

    Google AIY Robot Conversion

    Turned an 80s Tomy Mr Money into a little Google AIY / Raspberry Pi based assistant.

    Matt ‘Circuitbeard’ Brailsford’s Tomy Mr Money Google AIY Assistant is just one of many home-brew home assistants makers have built since the release of APIs for Amazon Alexa and Google Home. Here are some more…

    Teddy Ruxpin

    Oh Teddy, how exciting and mysterious you were when I unwrapped you back in the mideighties. With your awkwardly moving lips and twitching eyelids, you were the cream of the crop of robotic toys! How was I to know that during my thirties, you would become augmented with home assistant software and suddenly instil within me a fear unlike any I’d felt before? (Save for my lifelong horror of ET…)

    Alexa Ruxpin – Raspberry Pi & Alexa Powered Teddy Bear

    Please watch: “DIY Fidget LED Display – Part 1” https://www.youtube.com/watch?v=FAZIc82Duzk -~-~~-~~~-~~-~- There are tons of virtual assistants out on the market: Siri, Ok Google, Alexa, etc. I had this crazy idea…what if I made the virtual assistant real…kinda. I decided to take an old animatronic teddy bear and hack it so that it ran Amazon Alexa.

    Several makers around the world have performed surgery on Teddy to install a Raspberry Pi within his stomach and integrate him with Amazon Alexa Voice or Google’s AIY Projects Voice kit. And because these makers are talented, they’ve also managed to hijack Teddy’s wiring to make his lips move in time with his responses to your commands. Freaky…

    Speaking of freaky: check out Zack’s Furlexa — an Amazon Alexa Furby that will haunt your nightmares.

    Give old tech new life

    Devices that were the height of technology when you purchased them may now be languishing in your attic collecting dust. With new and improved versions of gadgets and gizmos being released almost constantly, it is likely that your household harbours a spare whosit or whatsit which you can dismantle and give a new Raspberry Pi heart and purpose.

    Take, for example, Martin Mander’s Google Pi intercom. By gutting and thoroughly cleaning a vintage intercom, Martin fashioned a suitable housing the Google AIY Projects Voice kit to create a new home assistant for his house:

    1986 Google Pi Intercom

    This is a 1986 Radio Shack Intercom that I’ve converted into a Google Home style device using a Raspberry Pi and the Google AIY (Artificial Intelligence Yourself) kit that came free with the MagPi magazine (issue 57). It uses the Google Assistant to answer questions and perform actions, using IFTTT to integrate with smart home accessories and other web services.

    Not only does this build look fantastic, it’s also a great conversation starter for any visitors who had a similar device during the eighties.

    Also take a look at Martin’s 1970s Amazon Alexa phone for more nostalgic splendour.

    Put it in a box

    …and then I’ll put that box inside of another box, and then I’ll mail that box to myself, and when it arrives…

    A GIF from the emperors new groove - Raspberry Pi Home Assistant

    A GIF. A harmless, little GIF…and proof of the comms team’s obsession with The Emperor’s New Groove.

    You don’t have to be fancy when it comes to housing your home assistant. And often, especially if you’re working with the smaller people in your household, the results of a simple homespun approach are just as delightful.

    Here are Hannah and her dad Tom, explaining how they built a home assistant together and fit it inside an old cigar box:

    Raspberry Pi 3 Amazon Echo – The Alexa Kids Build!

    My 7 year old daughter and I decided to play around with the Raspberry Pi and build ourselves an Amazon Echo (Alexa). The video tells you about what we did and the links below will take you to all the sites we used to get this up and running.

    Also see the Google AIY Projects Voice kit — the cardboard box-est of home assistant boxes.

    Make your own home assistant

    And now it’s your turn! I challenge you all (and also myself) to create a home assistant using the Raspberry Pi. Whether you decide to fit Amazon Alexa inside an old shoebox or Google Home inside your sister’s Barbie, I’d love to see what you create using the free home assistant software available online.

    Check out these other home assistants for Raspberry Pi, and keep an eye on our blog to see what I manage to create as part of the challenge.

    Ten virtual house points for everyone who shares their build with us online, either in the comments below or by tagging us on your social media account.

    Website: LINK