Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NNN
Submitted By
I hereby declare that the Industrial Training Report entitled PYTHON WITH ML is an
authentic record of my own work as requirements of Industrial Training during the period from
to_______ for the award of degree of B.Tech. (Computer Science), Phonics Group Of
Institutions, Roorkee, under the guidance of Mr. Sachin Chauhan.
Pawas Mishra
160570101017
Date: ____________________
Acknowledgement
During my internship period, the staffs at Able infotech and persons guiding me were very
helpful and extended their valuable guidance and help whenever required for the projects which
I worked on.
I am very thankful to my guide or team leader Mr. Vivek Kumar Singh for his invaluable
guidance and advice during my training period. I also thank to Mr. Ashok Pant who helped me
how to communicate with other people and generate the ideas that the company refers too.
My team taught me, guided me in the way that I learn all these things such as python console
uses, modules applications , in the beautiful way. Overall, the above team made my stay at
Able Infotech an enjoyable one and I consider myself as a very lucky individual as I was
provided with an opportunity to a part of it. I am also grateful for having a chance to meet so
many wonderful people and professionals who led me through this training period.
CONTENTS
Declaration Page 03
Acknowledgement Page 04
Modules Page
Page
Page
Page
Page
Conclusion Page
INTRODUCTION
OF
PYTHON
What is Python?
Why Python?
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines
than some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as
soon as it is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-orientated way or a
functional way.
Python Libraries
We know that a module is a file with some Python code, and a package is a directory for sub
packages and modules. But the line between a package and a Python library is quite blurred.
A Python library is a reusable chunk of code that you may want to include in your programs/
projects. Compared to languages like C++ or C, Python libraries do not pertain to any
specific context in Python. Here, a ‘library’ loosely describes a collection of core modules.
Essentially, then, a library is a collection of modules. A package is a library that can be
installed using a package manager like ruby gems or npm.
Installataion
To install the pyttsx3 module, first of all, you have to open the terminal and write
Usages
import pyttsx3
engine = pyttsx3.init()
engine.say("I will speak this text")
engine.runAndWait()
2. Speech Recognition
Speech recognition is the process of converting spoken words to text. Python supports many
speech recognition engines and APIs, including Google Speech Engine, Google Cloud
Speech API, Microsoft Bing Voice Recognition and IBM Speech to Text.
Installation
A library that helps is named “Speech Recognition”. You should install it with pyenv, pipenv
or virtualenv. You can also install it system wide:
The SpeechRecognition module depends on pyaudio, you can install them from your package
manager.
`r.recognize_google(audio, key="GOOGLE_SPEECH_RECOGNITION_API_KEY")`
3. DateTime
In Python, date, time and datetime classes provides a number of function to deal with dates,
times and time intervals. Date and datetime are an object in Python, so when you manipulate
them, you are actually manipulating objects and not string or timestamps. Whenever you
manipulate dates or time, you need to import datetime function.