You are on page 1of 10

A

Synopsis Report
On

RAILWAYS ANNOUNCEMENT
SYSTEM
For
partial fulfillment of award of the
B. Tech Degree in Information Technology

Under the Supervision of


Prof. PushpaChoudhary

Submitted by:
Aditya Soni (1819213006)
Atul Kumar Maurya (1819213030)

Session: 2020-21

G. L. Bajaj Institute of Technology and Management,


Greater Noida

TABLE OF CONTENTS

1. Introduction
2. Background
3. Methodology
4. Code Snippets
5. Conclusion
6. Future Scope
INTRODUCTION
Railways are an integral part of Indian transportation facilities . Almost everyone has travelled
by a train or at least been to a railway station and we know what a Railways announcement
system is ,it basically takes care of the important announcement in the station premises so that
the passengers can stay updated with the schedule . [1].

Our project tries to mimic the same . It basically performs like the automated
railway announcement system , uses python and various modules to make it
possible. Before going into the depths let’s just learn more about what the
Original Railways announcement system is and how it works . Indian railways
announcements are all previously recorded and stored and then they are played
according to the requirement b y a integrated system which customizes the
annoncement as per the given condition .for example phrases like “may i have
your attention please?”,”train number”,is arriving” or “is leaving the platform”
are common for every announcement. [2]

All the informat ion r egarding respect ive trains are stored in PDCH databases
and the person who takes care of the announcement has the access to these
databases and a switch called KVM switch is present which filters out the
particular instance of PDCH required and then m erges all the audio both the
pre recorded and the variables phrases and a resultant audio f ile is formed
which is then a mplified and played in to t he station prem ises. [ 3]

So that very much is the skeleton of the I ndian railways announ cement system
,to let you know I ndian railways is yet t o implement an com pletely automated
system it oper ates on semi aut omated system as of now ,
Figure 1: IPIS System

BACKGROUND
As discussed already this project tries to mimic the behavior of the semi automated Railways
announcement systems in India.

The source code is written in python programming language due to its rich library and dynamic
ability which is required for any application nowdays .

The dynamism is provided by the built in library of python and the gTTS library of is the heart
of this module as it helps in converting the text data to speech.

W will see the procedure of the interpretation of the input stream and breaking , merging and
conversion procedure in the following sections.

REQUIREMENT
• Python INTEGRATED DEVELOPMENT ENVIRONMENT(IDE)

• pyAUDIO Module

• pyDUB Module

• gTTS Library

• CLI Tool
• Many .xlxs files for providing stdin

Figure 2: Text To Speech

METHODOLOGY
In this section, methodology of proposed model has been described.

The input is provided through the excel file , by input the variable part of the announcement is
referred to . As we have discussed already that the announcement is made in two parts viz. the
constant part and the variable part .

The constant part is just recorded once and then the variable part is provided through the excel
file.

It is then read by the .xlxs file converted to an audio file and then merged into the constant
recording thus the desired output is produced in the audio format.

Figure 3: Python gTTS

1. An Excel file is used to take the variable phrases such as


train no. , station ,platform etc.

2. The input in the form of a text stream is then converted to


audio through gTTS and then merged using pyAudio library.
3. Finally a resultant audio is created in .mp3 format

4. The .mp3 file can then be opened manually.

Figure 5: Taking input from an excel file

That was all for the process of reading the input.

FUNCTIONS USED

def textToSpeech(text, filename)


This particular function takes an text input file as arguments and then uses the gTTS library to
convert the input text stream taken as input from an excel file into an audio clip.
Thus all the data is converted into seperate audio files which will later be used to construct our
desired input.

def mergeAudios(audios)
This function takes multiple audio files and then merges them in a particular order( which is
decided at runtime with the help of the pyAudio module ) by time slicing method of python.

It merges the parts of audio clips generated from the columns of the excel file, each column of
the excel file is generated into a seprate audio clip and then it is merged as per the requirements
with these function and the resultant audios are returned.

def generateSkeleton()
This function is used to generate the pre recorded audio which is same for every announcement
thus every time it is called it fetches that audio in the directory path provided to it and created a
temporary copy of that file which will be used in the program to generate the output.

def generateAnnouncement(filename)
This function pretty much works as the driver function of the program i.e. the main function
calls this function and the each utility function is called from the body of ths function and then
all the sub results are received and analyzed and then finally merged together to generate the
final desired announcement.

It first calls the testToSpeech function and then it receives all the audio files in a list of audio
which are then merged by time slicing method.
In the next step the constant announcement is generated and finally the merged announcement is
then generated in the prescribed directory path .
The user then can access that file from the particular path and hence the desired task is
performed .

Figure 6: Python function visualization

Figure 7: Code snippet


Figure 8: Code snippet

CONCLUSION AND FUTURE SCOPE


So we tried to mimic the Indian railways announcement system ( which is a hardware based
method ) through the libraries and modules of python .

With the help of various functions and libraries the project very much simulates its parent
model.

As we know it is still a semi-automated approach i.e. we have to provie the input manually and
then access the resultant file manually as well which is a lot of overhead for sure .

Thus in future the following improvements can be made to this project in order to make it better
and advanced- :

➢ It can be made more automated by using Machine learning concepts


which will learn from the previous inputs and predict the input at a
particular time through the pattern it studied.
➢ Also the overhead of accessing the output file from the prescribed
directory path can be improved and the file can be automatically
played as soon as the output is generated by using some mechanism.
➢ Using AI and robotics concepts the human interference of this project
an be reduced to zero and thus achieving full automation.

REFERENCES
1. "[IRFCA] Indian Railways FAQ: IR History: Early Days – 1". www.irfca.org. Archived from the original
on 7 March 2005. Retrieved 3 January 2014.
2. ^ "Suneet Sharma Appointed New Chairman and CEO of Railway Board". News18. 31 December
2020.
3. ^ Jump up to:a b "Indian Railways Budget Documents 2019–20" (PDF). Ministry of Railway.
Retrieved 10 July 2019.
4. ^ Jump up to:a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac "Indian Railways Year Book 2018-19"(PDF).
5. ^ Jump up to:a b c "Railway electrification" (PDF). www.indianrailways.gov.in. Retrieved 18 July 2020.
6. ^ Roy, Debasish. "Why isn't the Railways a PSU?". The Economic Times. Retrieved 23 August 2020.
7. ^ Jump up to:a b "Thumbs up! Indian Railways to go eco-friendly by becoming world's 1st 100%
electrified and 'Net-Zero' railway". TheFinancial Express. 16 October 2019. Retrieved 20
November 2019.
8. ^ Jump up to:a b c "[IRFCA] India's First Railways". www.irfca.org.
9. ^ "164 Years Ago On This Day, India's First Train Ran From Mumbai To Thane". Archived from the
original on 29 July 2017. Retrieved 24 July 2017.
10. ^ "India's 1st train: When Sahib, Sindh & Sultan blew steam – Times of India". Archivedfrom the
original on 8 August 2017. Retrieved 24 July 2017.
11. ^ "Extracts from the Railway Times". Railway Times. 1854. Retrieved 1 January 2019.
12. ^ "Legacy of First Railway Station of South India". RailNews Media India Ltd. Archivedfrom the
original on 29 July 2017. Retrieved 24 July 2017.
13. ^ "Kolkata's trams – A ride through history". 2 March 2016. Archived from the original on 29 July 2017.
Retrieved 24 July 2017.
14. ^ "The Evolution of Trams in Mumbai". The Urban Imagination – Faculty of Arts and
Sciences. Harvard University. Archived from the original on 11 October 2017. Retrieved 18
May 2018.
15. ^ Ifthekhar, JS. "The wheel comes full circle..." Telangana Today.
16. ^ Jaganath, Dr Santosh. The History of Nizam's Railways System. ISBN 978-1-312-49647-7.
17. ^ "Welcome to Official Website of CORE". www.core.indianrailways.gov.in. Archivedfrom the original
on 7 August 2017. Retrieved 26 July 2017.
18. ^ "History of Railways". www.kportal.indianrailways.gov.in. Archived from the original on 21 July 2017.
Retrieved 24 July 2017.
19. ^ "Archived copy" (PDF). Archived (PDF) from the original on 19 March 2015. Retrieved 13
January 2016.
20. ^ "160 years of Indian Railways: Here's how AC trains were kept cool". 2 April 2013.

You might also like