Skip to main content

Posts

How to Create A Voice Recorder Using Python

  A voice recorder records a sound or a voice of a person and converts it into an audio file. The file can be stored in different audio formats like MP3 format, Waveform Audio File (WAV), Advanced Audio Coding (AAC), Audio Interchange File Format (AIFF), etc. and later it can be transferred to other devices. Any device that is capable of recording a sound or a voice is said to be a voice recorder by default. In this article, you will learn to build a voice recorder with a few lines of code in Python. Where do We Use Voice Recorder? Some of the applications of a voice recorder are listed below: Interviews Handling Meetings Lectures/Seminars in Educational Institutions Audiobooks for kids Learning foreign languages Translating a word to another language Google search by voice A quick voice message to a person instead of typing Podcasts Voice assistants like Google assistants, Alexa, Siri, etc., Essentials The first and foremost thing needed to build a voice recorder using Python is two b
Recent posts

Easy Way To Build An Audiobook Using Python

  An audiobook is nothing but a book that was recorded in an audio format. It can also be stated as a book that is being read aloud. Audiobook helps in improvising one's vocabulary, comprehension and pronunciation of words. Hope some of you guys are bookaholic but lazy to read it on your own. So it's time to create your own audiobook by using few codes of Python. This will definitely make you enjoy audiobooks without any subscription fee, that was imposed on platforms like Audible, Scribd, etc. Prerequisite Python has a huge number of modules that contains reusable code which performs desired functions when invoked. It must be installed into your system before using its functionalities. So here we going to grab just 2 modules from a bunch of python modules prevailing around. Install PyPDF2 module, using                     pip install PyPDF2 Install pyttsx3 module, using                     pip install pyttsx3 PyPDF2 module It is one of the Pure-Python libraries that runs on an

A Simple Chatbot Using Python

Chatbot or chatterbot is a software program that simulates conversations made by humans through voice or text chats. It is more commonly used in messaging applications.  As we all know Alexa, Zo chatbot, Faketalk, Watson Assistant are some of the chatbots built on Artificial Intelligence and Natural Language Processing. Here am gonna show you how to create a chatbot, to open a system application on your device using python. Steps to follow First import the modules needed to make a chatbot. Then make the chatbot get input from the user ie., to which application he/she needs to open. Next, make the chatbot react to the user input by opening an application specified by the user. Make the chatbot work again and again until the user specifies to "quit". Modules needed Modules needed to build a chatbot are: pyttsx3 module os module pyttsx3 module Modules are nothing but a library that consists of reusable code that performs desired function when it gets invoked. It can be invoked i

Interacting With System Applications Through OS Module In Python

 As we all know, Operating System (OS) is a program that acts as an interface between computer hardware and user. Python has a standard utility module called "os module" to achieve a process of communicating directly to the operating system of your device. Installation The os module is one of the standard libraries in Python 3, so it doesn't need to be installed manually or externally. It comes along with the installation of Python. So it is mandatory to import this os module before using it in your program as it is not a built-in function. Importing module The os module can be used in a program by importing it initially. It is mandatory to import the os module as it is not a built-in function to use it without any importation. To import the os module, use the command as import os Built-in functions inside os module There are a bunch of built-in functions present inside the os module where one can invoke each function after the module gets imported inside a program.  To k

How To Take A Screenshot Using Python

A screenshot is nothing but an image of the data displayed on the screen of a mobile or computer device whereas a photograph is an image captured using the camera of a mobile device or a computer. The screenshot is also termed as screen capture or screengrab. In this case, we will be using "pyautogui" module, which controls mouse and keyboard actions to take screenshots using python. Installation To install pyautogui module, use pip install pyautogui To verify whether the module is installed or not, use the command as pip list On specifying this command, there comes a list of modules installed on your device, where one can crosscheck whether the required module is installed on your device. To view built-in functions of pyautogui module, use dir(pyautogui) This command lists out some of the built-in functions present inside this particular module. Built-in functions in pyautogui module screenshot( ) The screenshot( ) in pyautogui module simply returns an Image file that was ca

Fetch COVID-19 Report Using Python

To know the statistics of a pandemic disease COVID-19, python has a module named "covid". It extracts information about all the countries affected by this deadly disease. The information was provided by John Hopkins by default and worldometers to get specific content. It mainly works on python versions above 3.5. Installation To use the covid module, first, install it using,           pip install covid Source Selection covid module use john hopkins source by default. To select source as john hopkins, use ,           covid or           covid -s john_hopkins in command line. where -s indicates source. To select source as worldometers, use           covid -s worldometers Report on all the countries affected To get the list of all the countries affected, use covid -s worldometers --list-countries On specifying this code, the output will be, List of all countries affected Getting a report of a specific country To fetch report of a specific country, use covid -s worldometers -c i

Fetch Wikipedia Contents Using Python Code

  Wikipedia is known for its vast area of contents which everyone can share easily. It is something like an online free encyclopedia and the contents in Wikipedia can be edited by anyone around the world. This article focuses on extracting Wikipedia contents of any personality or about anything using simple Python Programming. module wikipedia      Python has many modules that are flexible to use in real-world applications. To extract Wikipedia contents, python has a module called "wikipedia". This module helps to fetch content from Wikipedia and to display result in your console screen. Installing Module      The module can be installed by using,                pip install wikipedia Fetching Content       The contents can be fetched by importing the module "wikipedia" and using the function summary( ).                import wikipedia                print(wikipedia.summary("ElonMusk" , sentences = 10)) The above code will result in Wikipedia content of  &q