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 e-book exhibits you the way to application the digital assistant to collect facts from the net (weather information, facts from Wikipedia, info mining); play song; and take notes. every one bankruptcy covers development a mini project/module to make the digital assistant greater. you will improve the software program on Linux or OS X ahead of moving it for your Raspberry Pi, prepared for deploying on your personal home-automation or net of items applications.

Building a digital Assistant for Raspberry Pi walks you thru a variety of STTs and TTSs and the implementation of those elements with the aid of Python. After that you're going to commence enforcing good judgment for dealing with consumer queries and instructions, in order that the consumer could have conversations with Melissa. you are going to then paintings to enhance good judgment dealing with to discover what the person wishes Melissa to do. additionally, you will paintings on construction a few priceless applications/modules for Melissa, in order to let you achieve attention-grabbing details from Melissa comparable to the time, climate details, and information from Wikipedia.

You will boost a tune enjoying program in addition to a observe taking software for Melissa, laying the rules for a way Melissa might be extra prolonged. ultimately, you'll the way to installation this software program on your Raspberry Pi and the way you could extra scale Melissa to make her extra clever, interactive and the way you should use her in different initiatives reminiscent of domestic automation as well.

What you are going to Learn

  • Design the workflow and realize the suggestions of creating 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 tune participant and a be aware taking software for the digital assistant
  • Integrate this software program with a Raspberry Pi

Who This booklet Is For

This booklet is for somebody who has outfitted a house automation undertaking with Raspberry Pi and now are looking to increase it by means of making it voice-controlled. The booklet could additionally curiosity scholars from desktop 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

From Robot to Human Grasping Simulation (Cognitive Systems Monographs, Volume 19)

The human hand and its dexterity in greedy and manipulating gadgets are a few of the hallmarks of the human species. For years, anatomic and biomechanical stories have deepened the knowledge of the human hand's functioning and, in parallel, the robotics neighborhood has been engaged on the layout of robot palms in a position to manipulating gadgets with a functionality just like that of the human hand.

Algorithmic Foundations of Robotics X: Proceedings of the Tenth Workshop on the Algorithmic Foundations of Robotics

Algorithms are a primary element of robot structures. robotic algorithms technique inputs from sensors that supply noisy and partial information, construct geometric and actual versions of the realm, plan high-and low-level activities at varied time horizons, and execute those activities on actuators with constrained precision.

Intelligent Robotics Systems: Inspiring the NEXT: 16th FIRA RoboWorld Congress, FIRA 2013, Kuala Lumpur, Malaysia, August 24-29, 2013. Proceedings

This booklet constitutes the refereed court cases of the sixteenth FIRA Robo international Congress, FIRA 2013, held in Kuala Lumpur, Malaysia, in August 2013. The congress consisted of the subsequent 3 meetings: fifth overseas convention on complex Humanoid Robotics examine (ICAHRR), fifth overseas convention on schooling and leisure Robotics (ICEER), and 4th foreign Robotics schooling discussion board (IREF).

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

Construct a voice-controlled digital assistant utilizing speech-to-text engines, text-to-speech engines, and dialog modules. This publication exhibits you ways to software the digital assistant to collect facts from the net (weather info, information from Wikipedia, facts mining); play tune; and take notes. every one bankruptcy covers construction a mini project/module to make the digital assistant higher.

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

Sample text

To test the say command, open the command line and enter the following command: $ say "Hi, I am Melissa" If you have your speakers turned on or if you are listening via earphones, you can listen to your system speak these words out loud to you. Linux Some Linux distributions come with software called eSpeak preinstalled. However, other distributions, like Linux Mint, do not have eSpeak preinstalled. net. Once you have installed the eSpeak software, you can test it via the terminal by entering the following command: $ espeak "Hi, I am Melissa" This causes your system to speak whatever you have written.

System() command. Next comes the play_random() function, where you create the list of all MP3 files present using the mp3gen() function. This function takes music_path as an argument. choice() function, which operates on the music_listing list. You then pass the name of the music file stored in music_playing to the music_player() function, which plays the music. ” Finally, the play_specific_music() function takes speech_text and music_path as arguments. You implement the same functionality here as in the define_subject module.

Choice() function to answer the user’s question. 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.

Download PDF sample

Rated 4.35 of 5 – based on 36 votes