41
English Voice and Text to Sinhala Text Translator Application for Android Devices Sri Lanka Institute of Information Technology PWD2012-18 Software Requirements Specification

Sri Lanka Institute of Information Technology Software Requirements Specification

Embed Size (px)

Citation preview

Page 1: Sri Lanka Institute of Information Technology Software Requirements Specification

English Voice and Text to Sinhala Text Translator Application for Android Devices

Sri Lanka Institute of Information Technology

PWD2012-18

Software Requirements Specification

Page 2: Sri Lanka Institute of Information Technology Software Requirements Specification

Group Members

IT 10 6071 38 – Wickramanayake W.A.V.M

IT 10 6063 84 - Jayathilaka K.K.G.I.

IT 10 6033 14 - Perera U.L.P.H.

IT 10 6018 84 - Dasanayaka D.M.M.L.

IT 10 6026 38 - Eashwarage D.B.S.

IT 10 6066 98 - Fernando M.L.A.S

Page 3: Sri Lanka Institute of Information Technology Software Requirements Specification

Contents

• Introduction• System Diagram • Overall Description • Product Functions • User Characteristics • Constraints • Assumption and Dependencies • External Interfaces• Classes / Objects • Performance Requirements • Summary

IT 10 6066 98 - Fernando M.L.A.S

Page 4: Sri Lanka Institute of Information Technology Software Requirements Specification

Introduction

•The purpose of this presentation is to describe the functional

and non- functional requirements of the English Voice and Text to

Sinhala Text Translator Application for Android Devices.

•This presentation explains system interfaces, user interfaces,

hardware interfaces, software interfaces, communication

interfaces, memory constraints of the project.

IT 10 6066 98 - Fernando M.L.A.S

Page 5: Sri Lanka Institute of Information Technology Software Requirements Specification

Introduction (Contd.)

•Furthermore this presentation describes the functions of this

product. This section of the presentation gives a brief idea about

the main functionalities of the android application.

•User characteristics section clearly point out the kind of users

that will use this product.

•The constraints explains the limitation the developers face while

developing the product.

IT 10 6066 98 - Fernando M.L.A.S

Page 6: Sri Lanka Institute of Information Technology Software Requirements Specification

Scope•Today’s world mobile devices have a very important place. Because it

portable and easy to use. Among them Android devices are the most

popular.

•Already there is an English voice detection mechanism in android. It

enables users to speak in English and then the application detects the

voice and displays it in English texts.

•The software product we are going to develop will get that English text

and translate it into Sinhala sentence.

IT 10 6066 98 - Fernando M.L.A.S

Page 7: Sri Lanka Institute of Information Technology Software Requirements Specification

Scope (Contd.)

•English sentence can be converted to Sinhala sentence with this

Android application and this application will take the advantage of

“Google voice APIs” and the output of the APIs may be the input of

our system, or the sentence can be manually inserted.

•This android application provides a basic grammatically correct

English sentences or an English voice sentence and the sentence

will be translator to Sinhala text. Application can be used to send

Sinhala sentences using SMS/MMS.IT 10 6066 98 - Fernando M.L.A.S

Page 8: Sri Lanka Institute of Information Technology Software Requirements Specification

Overview

IT 10 6063 84 - Jayathilaka K.K.G.I.

English voice and text to Sinhala text translator

Designed for use on Android

devices

Using a large database witch

store in a [1] remote server

Does not require a login to access

Device must support Sinhala Unicode and [2] Google Voice API

Internet connection is

necessary

Well performing Processor and Higher RAM integrate in

Android Device

IT 10 6071 38 – Wickramanayake W.A.V.M

Page 9: Sri Lanka Institute of Information Technology Software Requirements Specification

System Diagram

IT 10 6071 38 – Wickramanayake W.A.V.M

<<System>>English voice and text to Sinhala

text translator

Dictionary Database

<<External Input Option>>

Google Voice API

Internet <<External Input Option>>

Phone Keypad Input

<<External Input Option>>

MMS SMS Text

<<Input And Output System>>Device Data input and display

Internet

Android UserTranslation Request

Respond to TranslationSend Voice to Text

Request

Send Text

Send Voice to Text Request Respond

to request

Request Text Translation

Send RequestMatches

RequestMatches

Send Respond to Request

Respond to Request

Request Keypad

Send Text

Request Text

Send Text

Send Translated text

Page 10: Sri Lanka Institute of Information Technology Software Requirements Specification

Product Perspective

IT 10 6071 38 – Wickramanayake W.A.V.M

Application Translate English sentence to Sinhala sentence

Not like an English Sinhala dictionary, this system converts whole sentence

There are several similar applications like English to Sinhala and Sinhala to English dictionaries (it converts single words not sentence)

Google translator and [12] “Bilingual Expert for English to Sinhala” are similar systems

Page 11: Sri Lanka Institute of Information Technology Software Requirements Specification

System interfaces

IT 10 6071 38 – Wickramanayake W.A.V.M

Application will need the below requirements to execute correctly with the device

Android platform 2.3.3

Android APIs

Page 12: Sri Lanka Institute of Information Technology Software Requirements Specification

User interfaces

IT 10 6071 38 – Wickramanayake W.A.V.M

Page 13: Sri Lanka Institute of Information Technology Software Requirements Specification

Hardware interfaces

IT 10 6071 38 – Wickramanayake W.A.V.M

• ARM-based Single Core ProcessorChipset

• 128 MB RAM; 256 MB Flash ExternalMemory

• Mini or Micro SDStorage• QVGA TFT LCD or larger, 16-bit color or

betterPrimary Display• 5-way navigation with 5 application

keys or touch pad, power, volume controls

Navigation Keys

• Speaker and a MicrophoneSounds

• HSPA Internet connectivityInternet

Page 14: Sri Lanka Institute of Information Technology Software Requirements Specification

Communication interfaces

IT 10 6071 38 – Wickramanayake W.A.V.M

The User must need to connect to the Internet for the full functionality of the

application

3G HSPA Connection is required.

System will use the basic protocols HTTP, WAP.

Memory constraintsApplication is expected to use 32MB of RAM and 20MB of external memory for database management.

Page 15: Sri Lanka Institute of Information Technology Software Requirements Specification

IT 10 6071 38 – Wickramanayake W.A.V.M

OperationsUser will need to send the English sentence to the application. The output sentence will be displayed and user will need to copy the translated text sentence as user desire, to send SMS/MMS or to save as a note.

Site adaptation requirements

Can be downloaded through Android Market or Any source of media

The installation file can be directly run from the phone If the application is downloaded through internet it will be

automatically installed after download

Page 16: Sri Lanka Institute of Information Technology Software Requirements Specification

Product Functions

Translate to Sinhala

Paste Selected English Text

Type English Text

Speak

Get Translated Text

User

Copy Translated Text

Validate Sentence

if valid

<<extend>>

<<include>>

Use Case Diagram English to Sinhala Translator

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 17: Sri Lanka Institute of Information Technology Software Requirements Specification

Product Functions

Actors User.Pre-condition Valid English Grammar SentenceFlow of Events 1. Select “Translate”

2. Wait Till Translate.a. Divide Words b. Process Databasec. Validate Sentenced. Sinhala Vocabulary Translatore. Sinhala Sentence Generatorf. Sentence Organizerg. Edit post contenth. Process valid post

Post condition Sinhala sentenceAlternatives 3. If “Unicode” Fonts are not installed, Display a Massage.

Use Case : Get Translated Text

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 18: Sri Lanka Institute of Information Technology Software Requirements Specification

Product FunctionsUse Case : Speak

Actors User.

Pre-condition Valid English Grammar Speak able User

Flow of Events 1. Open Application.2. Select “Text” Option.3. Call the Sentence.

Post condition Speak sentence

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 19: Sri Lanka Institute of Information Technology Software Requirements Specification

Product FunctionsUse Case : Type English Text

Actors User.

Pre-condition Valid English Grammar Know User

Flow of Events 1. Open Application2. Select “Text” Option3. Type Sentence

Post condition Type English Text Sentence

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 20: Sri Lanka Institute of Information Technology Software Requirements Specification

Product FunctionsUse Case : Send SMS/MMS

Actors User.

Pre-condition Sinhala Generated Sentence

Flow of Events 1. Copy Text2. Open MMS/SMS application3. Paste

Post condition Save Sinhala sentence

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 21: Sri Lanka Institute of Information Technology Software Requirements Specification

Product FunctionsUse Case : Paste Selected Sinhala Text

Actors User.

Pre-condition Sinhala Generated Sentence in Clipboard

Flow of Events 1. Close/Minimize Application2. Open Notepad application3. Paste

Post condition Sinhala sentence

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 22: Sri Lanka Institute of Information Technology Software Requirements Specification

User Characteristics

Application can be used by any Sinhala known person and any novice person.

•If User knows English he can speak or type English text to convert.•If user doesn't know English he can use this application to convert any sentence .

e.g. :- received SMS

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 23: Sri Lanka Institute of Information Technology Software Requirements Specification

Constraints

IT 10 6063 84 - Jayathilaka K.K.G.I.

• People who are using our application he/she should perfectly pronouns and write English.

• Application should identify Full shop is the end of the sentence.• A given English sentence can be eight words or less.• If there is a comma in the sentence, application will split the sentence

to several parts

Hello, how are you

Hello How are you

Page 24: Sri Lanka Institute of Information Technology Software Requirements Specification

Assumption and Dependencies

Assumptions and

dependencies

The device should have installed English voice to English text

translator application

The device should support /should

have installed Sinhala Unicode.

The android version that have installed in the device should be 2.3(Gingerbread) or

higher than that

The basic password authentication and role

based security mechanisms will be used to protect

database from unauthorized access

IT 10 6063 84 - Jayathilaka K.K.G.I.

Page 25: Sri Lanka Institute of Information Technology Software Requirements Specification

Other Requirements

Safety Requirements

•database or server may crash due to power failure or virus attacks of serversystem will have a backup database for important data only•The backup database may contain English to Sinhala Dictionary Database.

Software Quality Attributes

•This system will be very user friendly•user will be able to find the necessary information very easier•To improve System in future there is an option to get feedbacks from users

IT 10 6063 84 - Jayathilaka K.K.G.I.

Page 26: Sri Lanka Institute of Information Technology Software Requirements Specification

Software System Attributes• When user wants to translate sentence application should

correctly deliver services• Without any mistake and user friendly• All sentences will be updated to the database for the correct

translation format

Reliability

• When the application has any request at any given time application should be available running in the phone without any exceptions or any time delays

• We will use backup server for give good service Availability

• Maintains of system has restriction for the ordinary users• For avoid hackers interaction system have different storage

medias.• Database of system and maintain panel will be store in

outside server• The main Software can be install inside Client`s android

device .

Security

IT 10 6063 84 - Jayathilaka K.K.G.I.

Page 27: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces

IT 10 6026 38 - Eashwarage D.B.S.

User Interfaces

Voice recognition page

Contents• Purpose – Opens Google voice

recognition facility• Inputs – English voice• Outputs – English text• Relationships to other

inputs/outputs – Single output• Screen formats/organization –

Supports low density, medium density, high density

• Window formats/organization – Supports small, medium, large, x-large

Page 28: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Contents

Selection page• Purpose - Select an option• Inputs – Voice/text• Outputs – English sentence• Valid range – 1 selection per one

try• Timing –Maximum timing is 3

seconds• Relationships to other

inputs/outputs – Single output• Screen formats/organization –

Supports low density, medium density, high density

• Window formats/organization – Supports small, medium, large, x-large

• Data formats – Characters/string

Page 29: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Contents

Translation page

• Purpose – Selecting an option• Inputs –Converted text from

Google voice APIs/received text message

• Outputs –Sinhala sentence• Valid range – 1-10 words• Accuracy – “.” Considers as end

of a sentence• Tolerance – 8 words• Units of measure – words• Timing –Maximum timing is 3

seconds• Relationships to other

inputs/outputs– Single output• Screen formats/organization –

Supports low[4] density, medium density, high density

• Window formats/organization –Supports small[5], medium, large, x-large

• Data formats–Characters/string

Page 30: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Contents

Translated page • Purpose – Use converted text as a message or e-mail

• Inputs –Sinhala sentence• Outputs – SMS/e-mail• Tolerance – same as the inputted

sentence• Units of measure – words• Timing –Maximum timing is 3

seconds• Relationships to other

inputs/outputs – Multiple outputs

• Screen formats/organization – Supports low density, medium density, high density

• Window formats/organization –Supports small, medium, large, x-large

• Data formats – Characters/string

Page 31: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Hardware interfaces

This application deals with android devices. Such as android[6] phones, pads, tablets.

Page 32: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Software interfacesThe application interacts with a voice to text application. That application detects the user’s voice and translates it to English sentence.

Software Interfaces

Page 33: Sri Lanka Institute of Information Technology Software Requirements Specification

External Interfaces(cont….)

IT 10 6026 38 - Eashwarage D.B.S.

Communication interfaces

The application uses internet only to send e-mails. To connect to the internet, the application uses devices‟ integrated internet accessing method.

Internet

Page 34: Sri Lanka Institute of Information Technology Software Requirements Specification

Class Diagram

IT 10 6033 14 - Perera U.L.P.H.

Word Deviser

GrammerChecker()WordAdjuster()

<<essential>>

Keyboard User Interface

EnterSentence()Retrive Sentence()

<<essential>>Speech User Interface

GoogleAPI_data

RetriveSpeech_Data()SendSpeech()RetriveTextSentence()

<<optional>>

Sinhala Word Devise

getWord()getWords()

<<desirable>>SMS/MMS Sender

SMS_outboxMMS_outbox

MMS_API_Sender()SMS_API_Sender()

<<desirable>>

Note_Saver

DB_data

Save()Load()

<<essential>>

SMS/MMS Reciver

SMS_inboxMMS_inbox

MMS_API_Receiver()SMS_API_Receiver()

<<desirable>>

Word Spelling checker

Validate Word()

<<essential>>

Output Sentense Generator

TwoWayVocablaryAnaliser()getSentences()

<<essential>>

Output Sentence Devise

SinhalaVocablaryIdentifier()SentencePicker()

<<essential>>

1

0..1

1

0..1

Input Sentence Validator

GrammerChecker()Validate()

<<desirable>>

1

1..n

1

1..n

Input Sentence Divider

EnglishVocablaryChecker()PatternIdentify()

<<essential>>

1

1..1,10

1

1..1,10

Output Sentence Orginizer

VocablaryCorrector()FinazeSentence()

<<essential>>

11 11

Sentence Translator Interface

InputSentenceOutputSentence

SentSentence()RetriveSentence()

<<essential>>

User Interface

TextSentence()

<<essential>>Core Translator Module

Filter_InputSentence()genetateOutputSentence()

<<essential>>

1 11 1

1

1

1

1

Android Device

StartApp()StopApp()getUI()setUI()connectDB()

<<essential>>

1

1

1

1

1..3,10 11..3,10 1 11 11

Page 35: Sri Lanka Institute of Information Technology Software Requirements Specification

Performance Requirements

• The performance and the respond of this Application software is very important

Internet bandwidth of the ISPProcessing power of phonePronunciations of usersAndroid version of Client Android Device

IT 10 6033 14 - Perera U.L.P.H.

Page 36: Sri Lanka Institute of Information Technology Software Requirements Specification

Performance Requirements

• To Increase performance

Most of the Phone resources are usedInbuilt database functionality for frequent required

queries

IT 10 6033 14 - Perera U.L.P.H.

Page 37: Sri Lanka Institute of Information Technology Software Requirements Specification

Design constraints

• IDE software as Eclipse• SQLite for Android inbuilt Database• MySQL for server Database

IT 10 6033 14 - Perera U.L.P.H.

Page 38: Sri Lanka Institute of Information Technology Software Requirements Specification

Summary

IT 10 6026 38 - Eashwarage D.B.S.

• Introduction• System Diagram • Overall Description • Product Functions • User Characteristics • Constraints • Assumption and Dependencies • External Interfaces• Classes / Objects • Performance Requirements • Summary

Page 39: Sri Lanka Institute of Information Technology Software Requirements Specification

References [1] NQ Mobile Security Research Center, "Security Alert: New Android MalwareDKFBootKi Moves

Towards The First Android BootKit | NQ Mobile U.S. Security Research Center" research.nq.com. 2, March.28, 2012.[Online]. Available: http://research.nq.com/?p=391 [Accessed: March. 28,2012].

[2] Android Developers, "Speech Input | Android Developers" http://developer.android.com.Jan.28, 2011.[Online]. Available: http://developer.android.com/resources/articles/speech-input.html [Accessed: March. 28,2012].

[3] Eclipse, "Eclipse Public License - Version 1.0" http://www.eclipse.org.[Online]. Available: http://www.eclipse.org/legal/epl-v10.html[Accessed: March. 28,2012].

[4] Android Developers, “User Interface Guidelines", 29 Mar 2012. [Online]. Available: http://developer.android.com/guide/practices/ui_guidelines/index.html [Accessed: March. 28, 2012].

[5] Android Developers, “Supporting Multiple Screens", 14 Mar 2012. [Online]. Available: http://developer.android.com/guide/practices/screens_support.html [Accessed: March. 28, 2012].

[6] Android Developers, “package android. Hardware", 08 Feb 2012. [Online]. Available: http://developer.android.com/reference/android/hardware/package-summary.html [Accessed: March. 28, 2012].

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 40: Sri Lanka Institute of Information Technology Software Requirements Specification

References [7] University of new Hampshire, “iPod, iPad, and Android Apps for College Students”,

2010.[online].Available: http://unh.edu/d Software system attributesisabilityservices/ipod-ipad-and-android-apps-college-students [Accessed:March.28,2012].

[8] Systems and internet infrastructure security, “Mobile Phone Security”, 2010.[online].Available: http://siis.cse.psu.edu/phones.html[Accessed:March.28,2012].

[9] Team 6g,” Software Requirements Specification for FACETs Mobile”, vol 2.0, pp 9-11, Nov.2010.

[10] C. L. Anderson and M. Nguyen. A Survey of Contemporary Instructional Operating Systems for use in Undergraduate Courses. Journal of Computing Sciences in Colleges, 21:183-190, October 2005.

[11] Benjamin Carpenter, Ryan Daugherty, Jack Dehlin, Jay Greene , “Android Game Suite Software Design Specification”,vol CS 430, pp 9-10, Mar.2010.

[12] BuddithaHettige,” BEES: Bilingual Expert for English to Sinhala”[online].Available:http://www.dscs.sjp.ac.lk/~budditha/bees.htm.[Accessed: Feb 8,2012]

IT 10 6018 84 - Dasanayaka D.M.M.L.

Page 41: Sri Lanka Institute of Information Technology Software Requirements Specification

Thank You !