![]() ![]() ![]() In the below example we see the initial execution of the assistant command jumps into a conditional statement looking for keywords in the command argument that was passed.Ĭircling back out to see where the command parameter assumes its value during runtime, we take a look at the m圜ommand function. It is reasonable to expect that m圜ommand captures voice input, and assistant carries out the associated task. Here we see the entrypoint for the program, it starts off with a while loop, passing the results of the m圜ommand function to the assistant function. There is one major distinction to make here, both gtts and speech_recognition are used for the natural language processing aspect of the program, whereas the remainder of the libraries are used for various tasks the program sets out to accomplish. We will discuss dependencies, program execution and later review the program flow holistically.Ībove we see the import statements for the libraries this program requires as dependencies. ![]() In this post we will create a voice activated assistant that can run on your desktop and accomplish tasks for you. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |