Voice Assistant Using Python: Suthar Parva Ajaybhai

Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

Voice Assistant Using Python

A PROJECT REPORT

Submitted by

Suthar Parva Ajaybhai

224510307178

In partial fulfillment for the award of the Internship Project-(4350704)

DIPLOMA ENGINEERING
in
Computer Engineering

SAL Institute of Diploma Studies

Gujarat Technological University, Ahmedabad

[Oct, 2024]
SAL INSTITUTE OF DIPLOMA STUDIES

CERTIFICATE
This is to certify that the Summer Internship report submitted along with the internship

entitled Voice Assistant using Python has been carried out by Suthar Parva Ajaybhai under

my guidance in partial fulfillment for the Internship Project of Diploma Engineering in

Computer Engineering, 5th Semester of Gujarat Technological University, Ahmedabad during

the academic year 2024-25.

Ms. Sneha Unnarkar Ms. Tejal Modi

Internal Guide Head of CE Department

SIDS SIDS

I
COMPANY CERTIFICATE

II
SAL INSTITUTE OF DIPLOMA STUDIES

DECLARATION
I hereby declare that the Internship Project report submitted along with the Internship

entitled Voice Assistant using Python submitted in partial fulfillment for the Internship

project(4350704) of Diploma Engineering in Computer Engineering to Gujarat

Technological University, Ahmedabad, is a bonafide record of original internship work

carried out by me at SAVA Infosystem Pvt. Ltd. under the supervision of Mr

KiranKumar Patel and that no part of this report has been directly copied from any

students’ reports or taken from any other source, without providing due reference.

Name of Student Sign of student

Suthar Parva Ajaybhai

III
ACKNOWLEDGEMENT

I wish to express my sincere gratitude to my external guide of Mr. KiranKumar

Patel for continuously guiding me at the company and answering all my doubts with

patience. I would also like to thank Ms. Tejal Modi (H.O.D. of CE Department)

for motivating me every time whenever I get confused, I would also like to thank my

Internal Guide Ms. Sneha Unnarkar for helping me through my internship by giving

me the necessary suggestions and advice along with her valuable coordination in

completing this Internship Project..

I also thank my parents, friends and all the members of the family for their precious

support and encouragement which they had provided in completion of my work. In

addition to that, I would also like to mention the company personnel who gave me

the permission to use and experience the valuable resources required for the

Internship.

Thus, in conclusion to the above said, I once again thank the staff members of SAVA

Infosystem Pvt. Ltd. for their valuable support in completion of the Internship

Project.

Thank You.

IV
COMPANY PROFILE

Sava Int Ltd is a dynamic and forward-thinking company that operates in diverse
industries with a focus on innovation and sustainable growth. Founded with a mission
to deliver high-quality products and services, Sava Int Ltd has established a strong
reputation for reliability, customer-centric solutions, and market adaptability.

The company's core operations span various sectors, including manufacturing, import-export,
and technological services. Sava Int Ltd prides itself on offering cutting-edge products that
meet the evolving demands of global markets. The company has cultivated a wide network of
international partnerships, allowing it to access emerging markets and supply chains while
maintaining a competitive edge in its sectors.

With a commitment to sustainability, Sava Int Ltd integrates environmentally responsible


practices across its operations. This approach not only supports global environmental goals but
also enhances the company's brand image and fosters long-term customer loyalty.

At the heart of Sava Int Ltd’s success is a dedicated team of professionals who bring a wealth
of expertise and a passion for innovation. The company invests in continuous staff
development and encourages a collaborative working culture, ensuring that every team
member contributes to the company's goals.

Sava Int Ltd's forward-looking strategy includes embracing technological advancements,


fostering innovation, and ensuring the highest standards of quality in its offerings. As a result,
it remains a trusted and progressive player in the global marketplace, continuously seeking
new opportunities to grow and expand its footprint while staying true to its core values of
integrity, sustainability, and customer satisfaction.

V
WEEKLY REPORT(1)

VI
V
WEEKLY REPORT(2)

V
VII
WEEKLY REPORT(3)

V
VIII
ABSTRACT

This project explores the development of a voice assistant using Python, aimed at

providing an interactive and efficient interface for users to perform various tasks through

voice commands. The voice assistant leverages key libraries such as Speech Recognition

for converting speech to text, pyttsx3 for text-to-speech synthesis, and additional APIs for

accessing information and services.

The system is designed to recognize natural language commands, execute tasks like setting

reminders, retrieving weather updates, and controlling smart home devices. Evaluation

metrics include recognition accuracy, response time, and user experience, with findings

indicating effective performance across different environments.

The project highlights the strengths of Python in building accessible voice-driven

applications and identifies areas for future improvement, including enhanced natural

language processing and integration of machine learning for personalized interactions.

VIII
IX
LIST OF FIGURE

• System Flow Diagram...........................................................................2.1


• ER Diagram. ………………………………………………………….2.2
• DFD Diagram........................................................................................2.3
• Activity Diagram...................................................................................2.4
• Use Case Diagram.................................................................................2.5
• Snapshot of Code..................................................................................3.1
• Snapshot of Code..................................................................................3.2
• Snapshot of Code..................................................................................3.3
• Snapshot of Code..................................................................................3.4
• Snapshot of Code..................................................................................3.5
• Snapshot of Output..............................................................................3.6
• Snapshot of Output..............................................................................3.7
• Snapshot of Output..............................................................................3.8
• Snapshot of Output..............................................................................3.9

VIII
X
LIST OF TABLE

• Access Velter …………………………………………………………Page 7


• Function……………………………………………………………….Page 7

X
XI
TABLE OF CONTENT

Sr. Page
Title
No. No.

1. INSTITUTE CERTIFICATE I
2. COMPANY CERTIFICATE II
3. DECLARATION III
4. ACKNOWLEDGEMENT IV
5. COMPANY PROFILE V

6. WEEKLY REPORT VIII

7. ABSTRACT IX
8. LIST OF FIGURE X
9. LIST OF TABLES XI
10. TABLE OF CONTENT XIII

11. CHAPTERS 1

12. REFERENCES 13

13. CHAPTER 1: INTRODUCTION 1

1.1 Introduction to Project 1


1.2 Objective 1
1.3 Scope 2

14. CHAPTER 2: SYSTEM DESIGN 3

2.1 System Flow Diagram 3


2.2 ER Diagram 4
2.3 DFD Diagram
0-Level 4
1-Level
2.4 Use case Diagram 5
2.5 Activity Diagram
6

XIIX
15. CHAPTER 3: IMPLEMENTATION 7

3.1 Data Dictionary 7

3.2 Code 8

3.3 Screen - Shots 10

16. CHAPTER 4 : CONCLUSION 12

17. CHAPTER 5 : REFERENCES 13

CHAPTER 1: INTRODUCTION
XIII

X
224510307178 INTRODUCTION

1.1 Introduction to Project


In recent years, voice-assisted technologies have gained significant popularity, transforming the way
users interact with devices and access information. This project focuses on developing a voice assistant
using Python, a versatile and accessible programming language well-suited for rapid development of
interactive applications.
The primary objective of this project is to create a voice assistant that can understand and respond to
natural language commands, enabling users to perform a variety of tasks hands-free. By integrating
speech recognition and text-to-speech capabilities, the assistant aims to provide a seamless user
experience. Key functionalities include answering queries, setting reminders, controlling smart home
devices, and retrieving real-time information such as weather updates.
Python's rich ecosystem of libraries, including SpeechRecognition and pyttsx3, allows for effective
implementation of these features. This project not only demonstrates the practical application of Python
in creating intelligent systems but also highlights the challenges of voice recognition, such as varying
accents and background noise.
Ultimately, this voice assistant project serves as a foundation for exploring more advanced capabilities
in natural language processing and machine learning, paving the way for personalized and context .

1.2 Objective

The primary objective of this project is to develop a functional voice assistant using Python that can
interpret and respond to user commands through natural language processing. Specific goals include:
• Speech Recognition: Implementing robust speech recognition capabilities to accurately
convert spoken language into text.
• Natural Language Understanding: Enabling the assistant to comprehend user intents and
context, allowing for more meaningful interactions.
• Task Execution: Facilitating the execution of various tasks such as setting reminders,
retrieving information, and controlling smart home devices.
• User Engagement: Creating an intuitive and engaging user interface that encourages
interaction and provides a satisfying user experience.
• Continuous Improvement: Establishing a framework that allows for the addition of new
features and enhancements based on user feedback and technological advancements.

1
224510307178 INTRODUCTION

1.3 Scope

The scope of this project encompasses the development and deployment of a voice assistant with the
following key components:
• Core Functionality: The assistant will be able to perform fundamental tasks such as answering
queries, providing weather updates, and setting reminders.
• Integration with APIs: Leveraging external APIs to access information and services,
enhancing the assistant's capabilities (e.g., news updates, calendar management).
• Device Control: Implementing basic controls for smart home devices, such as lights and
thermostats, to demonstrate the assistant's practical applications.
• User Interaction: Designing a simple user interface that allows users to interact with the
assistant via voice commands and receive spoken responses.
• Limitations: The project will focus on English language support initially, with future plans to
expand language capabilities. Additionally, the assistant's performance may vary based on
environmental factors like background noise and user accents.

SYSTEM DESIGN

CHAPTER 2: SYSTEM DESIGN

2.1 System Flow Design :

2
224510307178 INTRODUCTION

[Fig 2.1 System Flow design]

SYSTEM DESIGN

2.2 ER Diagram :

3
224510307178 INTRODUCTION

[Fig 2.2 ER Diagram]

2.3 DFD Diagram :

0-level or Context Level Diagram

[DFD 0 Level : Voice Assitant]

SYSTEM DESIGN

1 -Level :-

4
224510307178 INTRODUCTION

[DFD 1 Level : Voice Assitant]

2.4 Activity Diagram:

[Fig 2.4 Activity Diagram ]


SYSTEM DESIGN

2.5 Use Case Diagram :


5
224510307178 INTRODUCTION

[Fig 2.5 Use case Diagram]

IMPLEMENTATION

CHAPTER 3: IMPLEMENTATION

3.1 Data Dictionary:

6
224510307178 INTRODUCTION

No Voice FaceLock
UserName Password

1 Parv welter

2 Prayush User

[Table 3.1 Access Velter]

Application Webbrowser System

Word,Excel YouTube Shutdown

Powerpoint Google Weather

Spotify,Whatsapp Wikipedia Screen Shot

Game Opera Change Wallper


IMPLEMENTATION
[Table 3.2 Function ]

3.2 Code :

7
224510307178 INTRODUCTION

[Snapshot of code : 3.1 ]

[Snapshot of code :3.2]


IMPLEMENTATION

8
224510307178 INTRODUCTION

[Snapshot of code :3.3]

[Snapshot of code 3.4]

9
224510307178 INTRODUCTION
IMPLEMENTATION

[Snapshot of code :3.5]

3.3 Screen Shots

[Snapshot of Output: 3.6]

10
IMPLEMENTATION
INTRODUCTION
224510307178

[Snapshot of Output:3.7]

[Snapshot of Output :3.8]

[Snapshot of Output:3.9]

11
CONCLUSION
INTRODUCTION
224510307178

CHAPTER 4: CONCLUSION
Voice assistance technology enhances the user experience by enabling hands-
free interaction and quick access to information through spoken commands.
In the context of report summarization, it provides several benefits:
Summarizing lengthy reports and delivering them in speech form saves time
and effort, allowing users to focus on critical information. Accessibility Voice
assistance improves accessibility for individuals with visual impairments or
those who prefer auditory learning, making reports easier to consume.

Convenience Hands-free operation allows users to multitask while receiving


important updates, improving productivity.

Customization With further enhancements, voice assistants can offer


personalized responses, language support, and adaptive learning, making the
technology more flexible and user-centric.

Incorporating text summarization with text-to-speech (TTS) and optional


voice recognition paves the way for a dynamic, interactive, and efficient
method of communicating brief reports. This solution offers a streamlined
approach to delivering key insights and facilitating smoother workflows in
business or daily tasks.

12
REFERENCES
INTRODUCTION
224510307178

CHAPTER 5: REFERENCES
• GeeksforGeeks : https://www.geeksforgeeks.org/

• W3School : https://www.w3schools.com/

• Wikipedia: https://www.google.com/

13

You might also like