![]() In this section, I will walk you through how Cali's entire source code works. CODING UP CALIĬali's source code is pretty straight forward and isn't that difficult to understand. To follow along with this blog post, go ahead and clone Cali from Github at or download the code-load using this link: įor this tutorial, we will be using the online-tts-only branch on Github.Īfter you have downloaded or cloned Cali from Github, you should follow the steps in README.MD file to download and install Cali's dependencies. Main.py: The main program file, receives input using Google Speech Recognition and maps the received text to an action to take. Speaker.py: Uses IBM Watson Text to Speech library to synthesize text to speech, save it as an audio file and play it using MPG321 command-line player. Weather.py: Uses OpenWeatherMap API to fetch weather data for any city. Timeservice.py: Checks and return local computer time and local time in other cities. Util.py: Uses Python's webbrowser module to open a new browser tab. (This isn't a lot, but you can build on top of Cali to add more features, I urge you to do so when you're done with this blog post)Ĭali is made up of the following source code files: In this article, we will be building a simple virtual assistant named Cali.Ĭali can check the weather, tell the local time, open up a twitter profile, and search for youtube videos. This article assumes you have a basic understanding of the following prerequisites: ![]() In this article, I will be walking you through how to create a simple virtual assistant using Google Speech Recognition and IBM Watson Text to Speech in Python. They help us check the weather, make phone calls, control the thermostat, door locks, and other smart home devices e.t.c Virtual assistants are everywhere from Alexa, to Google Home, to Apple Siri.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |