45 - JAVA - Text To Speech

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Text To Speech Conversion

Abstract:
Description:
The idea of the project is built in Windows Project. Using this project we can convert text into speech.
Converting the text which we have entered and also the documents like .pdf,.txt and .doc will be converted into
speech is done in this Project.
Among the many definitions that could be given of text to speech, the one that describes it as a way of having a
audibly communicate information to the user is probably the most relevant within the context of this statement.
In situations where visual feedback is inadequate or even impossible, audible feedback may be an essential
feature, in other situations it may just add extra value to a product.
Moving further this idea can be implemented across all the browsers which we wanted to define as Future scope
of the project. Along with this, if the users wanted to read any kind of document such as .txt, .doc, .PDF we
wanted to build a desktop utility to read entire/selected portion of the text for him/her. Even we want our project
to support saving those selected/Entire file as wav format so that user can listen to the article whenever he/she
wants instead of searching.

Modules & Functionalities in this Project:


The following are modules /functionalities of the projects.
1. Reading selected text of Text area.
Whenever user selects some text and commands the text area then our application need to speak out the
selected text.
2. Documents reader module
In this module user can upload any kind of document [.Txt, .Doc, .PDF ] to listen to the text in the
document.
a. .Txt file upload and convert it into voice.
b. .Doc file upload and convert it into voice.
c. .PDF file upload and convert it into voice.
3. Even the application should be able to handle selected text reading.
a. Document Reader
4. Converting selected text to Wav format for further reference.

Technologies used:
Language : Java
Design : AWT, Swings
IDE : Eclipse
Operating System : Windows (or) Linux (or) Mac any version

1. INTRODUCTION
1.1 Purpose
Among the many definitions that could be given of text-to speech, the one that describes it as a way of
having a computer audibly communicate information to the user is probably the most relevant within
the context of this statement. In situations where visual feedback is inadequate or even impossible,
audible feedback may be an essential feature; in other situations it may just add extra value to a
product. Generally, text-to-speech provides a very valuable and flexible alternative for digital-audio
recordings in cases where:
 Recordings are too expensive.
 Disk storage is insufficient to store recordings.
 The application does not know ahead of time what it will need to speak.
The information varies too much to record and store all the alternatives.

1.2 Project Scope


The term "Text-to-Speech," or TTS for short, refers to the process by which plain text is converted
into digital audio and then "spoken." This "speaking" can be in the form of actually sending the audio
through a computer's speakers (or other capable device), or simply saving the converted audio for
later playback.
For the most part, all TTS conversion engines can be broken out into one of three methods used to
convert phonemes (the smallest phonetic unit in a language that is capable of conveying a distinction
in meaning, such as the m of mat and the b of bat in English) into audible sound. The supplied
Microsoft Speech engines use the second method. The three methods are described in the following
paragraphs.

1.3 Project Overview:


The main aim of the application is when the users are searching through an article in web, we wanted
some one to speak for the user instead he /she going through entire article. For that we wanted to build
a new concept of select and speak in IE. This is purely research and development in this area.

1.4 Project Description:


Text to speech program that lets you type-in any English or Spanish text and then plays it as an audio
stream. Streams also can be downloaded and saved as standard MP3 files.
Instantly convert desired text to MP3 file.
Converting files into Speech format .File can be doc, txt, pdf.
Supported language : English
Save converted text as an MP3 file.

2. PROBLEM DEFINITION

2.1 Existing System:


In the existing system we can read the text which is selected, but it don’t have the PDF & document
reader.
2.2 Proposed System:
In proposed we are developing an application text to speech to read the selected text, through which
we can read the PDF and Microsoft word documents.
2.3 User Classes and Characteristics
Using this product user can listen his entered text or selected text. He or she can listen given input file
text which can be doc, txt, pdf format.
User can listen IE browser text by selecting text from IE browser.
User can save converted text into MP3 Format.
2.1 The Operating Environment
SoftWare Requirements:
Software Requirements used are Windows XP and any other latest editions. JavaScript, Java
Technologies.
Hard Requirements:
Hardware Requirements used are P4processor, 512MB of Main Memory (RAM) and 40GB hard disk
and base memory.
2.2 Design and Implementation Constraints
Design constraints developers. All modules are coded thoroughly based on requirements from
software organization. The software is designed in such a way that the user can easily interact with the
screen. Software is designed in such a way that it can be extended to the real time business.
2.3 User Documentation
In our user manual we are going to keep the information regarding our product, which can be
understandable by a new person who is going to use it. If a new person is using it, online help will be
provided in that. We are going to explain each and every step clearly about our product so that any
user can easily understand it.
2.4 Module Description:
In this we have 6 modules
 Entered Text or Selected Text to Speech conversion
 Text File conversion Module
 Doc File conversion Module
 PDF File conversion Module
 Internet explorer Browser Text into Speech Module
 Text to MP3 Conversion Module

Entered Text or Selected Text to Speech


In this module user has to enter some text and he can listen the speech by clicking the read button
.user can listen select text from entered text.
In this module we have to design GUI which provides text area to enter text and buttons like read,
stop, pause and browse for giving the input file from System directories.

Text File conversion Module


In this module,
User can give the text file as input for converting text into speech .In this module functionalities are

Getting path of input file


Open the file using path
Reading File
Read text passed to speech method

Doc File conversion Module


In this module,
User can give the doc file as input for converting text into speech .In this module functionalities are
Getting path of input file
Open the file using POI API which is designed to read Microsoft Doc File from Java
Reading File using POI API
Read text passed to speech method
PDF File conversion Module
In this module,
User can give the PDF file as input for converting text into speech .In this module functionalities are
 Getting path of input file
 Open the file using pdfbox API which is designed to read PDF File from Java
 Reading File using pdfbox API
 Read text passed to speech method

IE Browser Text conversion Module


In this module,
Users can Listen IE browser text by selecting some text in the browser. In this module functionalities
are
 Adding context menu item to IE
 Provide action for context menu item
 Reading selected text using JavaScript
 Writing text in to temporary text file
 Command passed to execute our desktop application
 Reading text from temporary text file
 Read text passed to speech

Text to MP3 conversion Module


In this module,
User can save text as mp3 format. In this module functionalities are
 Save the selected text in temporary memory
 Convert it into MP3 format
 Save the MP3 file in desired location.

2.5 Hardware and Software Requirements:


Hardware Interface:
We require Internet connection for interacting with IE browser data and local computers for any help
or any other requirement. We use TCP/IP protocol for communicating with local hosts. We also need
system with P2 or above processor; 128MB+ RAM and database memory.
Software Interfaces
 Java, AWT, swings for designing GUI
 Java APIs like POI, pdfbox, freeTTS for reading text and converting into speech
 In this project and we follow Microsoft predefined way of adding IE context menu item.
 Eclipse IDE for writing the programs.
 Operating System can be Windows XP, LINUX and Mac etc.

You might also like