Building a Virtual Assistant for Raspberry Pi: The practical by Tanay Pant

By Tanay Pant

Build a voice-controlled digital assistant utilizing speech-to-text engines, text-to-speech engines, and dialog modules. This publication exhibits you the way to application the digital assistant to collect info from the net (weather info, info from Wikipedia, information mining); play track; and take notes. every one bankruptcy covers development a mini project/module to make the digital assistant greater. you are going to enhance the software program on Linux or OS X ahead of shifting it for your Raspberry Pi, prepared for deploying on your personal home-automation or web of items applications.

Building a digital Assistant for Raspberry Pi walks you thru quite a few STTs and TTSs and the implementation of those parts with assistance from Python. After that you're going to begin imposing good judgment for dealing with consumer queries and instructions, in order that the person could have conversations with Melissa. you are going to then paintings to enhance common sense dealing with to discover what the person desires Melissa to do. additionally, you will paintings on development a few necessary applications/modules for Melissa, for you to let you achieve fascinating info from Melissa corresponding to the time, climate details, and information from Wikipedia.

You will advance a song taking part in software in addition to a word taking software for Melissa, laying the principles for the way Melissa may be extra prolonged. eventually, you'll install this software program for your Raspberry Pi and the way you could additional scale Melissa to make her extra clever, interactive and the way you should use her in different initiatives akin to domestic automation as well.

What you will Learn

  • Design the workflow and detect the innovations of establishing a voice managed assistant
  • Develop modules for having conversations with the assistant
  • Enable the assistant to retrieve info from the internet
  • Build utilities like a song participant and a notice taking software for the digital assistant
  • Integrate this software program with a Raspberry Pi

Who This e-book Is For

This e-book is for somebody who has equipped a house automation undertaking with Raspberry Pi and now are looking to improve it by way of making it voice-controlled. The ebook may additionally curiosity scholars from laptop technology or comparable disciplines.

Show description

Read or Download Building a Virtual Assistant for Raspberry Pi: The practical guide for constructing a voice-controlled virtual assistant PDF

Similar robotics books

Neural Preprocessing and Control of Reactive Walking Machines: Towards Versatile Artificial Perception-Action Systems

This e-book offers biologically encouraged strolling machines interacting with their actual atmosphere. It describes how the designs of the morphology and the habit regulate of strolling machines can make the most of organic stories. the aim of this e-book is to improve a modular constitution of neural keep watch over producing assorted reactive behaviors of the actual strolling machines, to research the neural mechanisms underlying the reactive behaviors, and to illustrate the sensor fusion approach resulting in delicate switching among applicable behaviors, like difficulty avoidance and sound tropism.

Robot Builder's Sourcebook : Over 2,500 Sources for Robot Parts

This ebook bargains every little thing the robotics hobbyist must study - what it really is - the place to get it - how you can start - from the writer of "Robot Builder's Bonanza! " fascinated about the realm of robotics yet have no idea the way to faucet into the magnificent volume of knowledge on hand at the topic? Clueless as to finding particular details on robotics?

Computational Surgery and Dual Training

The recent and rising box of computational surgical procedure will increase the potency and caliber of surgical procedure and may provide sufferers entry to very complicated surgical operations that require severe precision and minimal intrusion. as a way to successfully install computational surgical procedure suggestions in lifestyles threatening instances resembling inoperable melanoma tumors that experience invaded severe artery tissues or the anxious procedure, surgeons must turn into very accustomed to computing equipment, similar to snapshot research, augmented truth and robotics.

CAD/CAM, Robotics and Factories of the Future: Proceedings of the 28th International Conference on CARs & FoF 2016

This quantity relies at the lawsuits of the twenty eighth overseas convention on CAD/CAM, Robotics and Factories of the long run. This publication specifically specializes in the confident adjustments made within the box of robotics, CAD/CAM and destiny outlook for rising production devices. a few of the very important subject matters mentioned within the convention are product improvement and sustainability, modeling and simulation, automation, robotics and dealing with platforms, provide chain administration and logistics, complex production strategies, human points in engineering actions, rising situations in engineering schooling and coaching.

Additional info for Building a Virtual Assistant for Raspberry Pi: The practical guide for constructing a voice-controlled virtual assistant

Example text

Connect_to_proxy(proxy_username, proxy_password) Now, giving Melissa a command like “Connect to proxy server” will cause her to automatically connect you to the proxy server. Remember that you should never store passwords in plaintext in publicly accessible files. As I mentioned, you may want to re-create the earlier instructions and store the username and password in a database using an encryption scheme such as SHA2. Time to Sleep, Melissa! Let’s write a short module to shut down the software and ask Melissa to sleep.

The second problem is much more complex in nature. ” the logical engine will pass control to the undefined() function. ” essentially mean the same thing. This problem can be handled by checking speech_text for certain keywords. ', 24 CHAPTER 3 ■ GETTING YOUR HANDS DIRTY: CONVERSATION MODULE 'You ask that so many times! choice(replies)) def tell_joke(): jokes = ['What happens to a frogs car when it breaks down? ', 'Why was six scared of seven? choice(jokes)) def who_am_i(name): tts('You are ' + name + ', a brilliant person.

First, you split the speech_text string and store it in a variable called words_of_message. This results in an array of words that are present in the speech. py file refers to an array of strings (not a string, as in the previous version). You then make a set of check and words_of_message, which removes any duplicate words. Finally, you check whether the set check is a subset of the set words_of_message. If it is a subset, then it returns True; otherwise, it returns False (see Figure 3-2). 26 CHAPTER 3 ■ GETTING YOUR HANDS DIRTY: CONVERSATION MODULE Figure 3-2.

Download PDF sample

Rated 4.23 of 5 – based on 20 votes