DBMS Synopsis

You might also like

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

________________________________________________________________

Title: Voice-based Transport


Enquiry System
________________________________________________________________

Team Details

 Project Leader – Kusuma M.S

 Team members- Thanushree T S

Hemashree Manjunath

Jeevitha S

Varsha .V.Vati

 Address of Correspondence- 2nd flr, Rajarajeshwari College of


Engineering
 Contact Details/Email-6360056144/Jeevithashekar093@gmail.com

__________________________________________________________________

Objective/Aim
 Voice Based Transport Enquiry System is a website in which user
provide the detail needed by them through the voice and the system
provide the information through text. The system shall provide
option to add new information like route information and the
timings at which the transport facility is available.

_________________________
Technical Details
 This Java code creates a basic voice-based transport enquiry
system.
 It utilizes SQLite to store transport details and demonstrates how to
handle voice input using JSAPI (Java Speech API).
 Note that the code provided is a basic framework, and the
implementation of voice input capturing and speech recognition
using JSAPI would depend on the specific library you choose to
use.
 Additionally, this code assumes a basic understanding of JDBC
(Java Database Connectivity) for database interaction.

 Hardware Requirements:

 Processor DIV/Dual/ Core/Core/I3/I5/I7/ Higher


 Hard Disk,500 GB/ Higher
 RAM 1GB/Higher
 Keyboard 108 Keys Enhanced
 Mouse Optical

 Software Requirements:

 Windows 7
 Asp.net
 SQL Server
 Visual Studio 2010
 Web Server IIS (5.1 or Above)
 Internet Explorer/Google Chrome

Explanation About The Database Project:


This innovative tool provides a great help in saving time while traveling.
Everyone knows that long queues in front of the transport controller’s office at
public transport terminals are a regular thing because this is the only place
commuters can get information about the different types of transport facilities
available. In this case, the use of technology-enabled transport inquiry systems
can help in saving time and effort.
With the help of a database, an automated system for bus stands, railway
stations, and airports can be developed that will take voice commands as input
and answer in a voice-based format as output

Innovativeness/Usefulness
Voice BasedAutomated Transport Enquiry System with GPS Enabled
Tracking is developed for providing the information for the enquiry in transport
terminals. This project is developed using .Net technology using c#
Programming language. This uses sql server for storing the database i.e.
information to be provided to the user. This user Microsoft Speech recognition
to detect the voice from the user and gives appropriate output. As the name
suggest it also gives the feature of live tracking of the bus.There are many
applications available right now which give details about transport modes form
a particular source to destination. But all these applications are either limited for
a particular type of transport or gives limited information. Google maps
application provides similar kinds of facilities It takes input form the user,
namely, the source and the destination and display all the modes of transport
available. It also shows the route plot on map. However, it does not provide
some details like fairs or the best route to take at that particular time. This
system aims at taking the features from all the existing applications and making
them available at a single place and also adding some new features, like the live
video feed.

ADVANTAGES

 It works in more interactive way in the form of speech.


 It needs less or no human intervention.
 It is automated.
 It needs very less maintenance.

Code construct
import java.sql.*;

public class TransportEnquirySystem {

// Connect to SQLite database

static Connection conn = null;


static {

try {

Class.forName("org.sqlite.JDBC");

conn =
DriverManager.getConnection("jdbc:sqlite:transport.db");

Statement stmt = conn.createStatement();

String createTableQuery = "CREATE TABLE IF NOT EXISTS


transport (" +

"id INTEGER PRIMARY KEY," +

"route TEXT," +

"schedule TEXT," +

"fare INTEGER)";

stmt.executeUpdate(createTableQuery);

stmt.close();

} catch (Exception e) {

e.printStackTrace();

// Function to add transport details to the database

public static void addTransport(String route, String schedule, int


fare) {

try {

PreparedStatement pstmt = conn.prepareStatement("INSERT


INTO transport (route, schedule, fare) VALUES (?, ?, ?)");

pstmt.setString(1, route);
pstmt.setString(2, schedule);

pstmt.setInt(3, fare);

pstmt.executeUpdate();

pstmt.close();

System.out.println("Transport details added successfully!");

} catch (SQLException e) {

e.printStackTrace();

// Function to retrieve transport details from the database

public static void getTransport(String route) {

try {

PreparedStatement pstmt = conn.prepareStatement("SELECT *


FROM transport WHERE route=?");

pstmt.setString(1, route);

ResultSet rs = pstmt.executeQuery();

if (rs.next()) {

System.out.println("Route: " + rs.getString("route"));

System.out.println("Schedule: " + rs.getString("schedule"));

System.out.println("Fare: " + rs.getInt("fare"));

} else {

System.out.println("Transport details not found for this


route.");

}
pstmt.close();

} catch (SQLException e) {

e.printStackTrace();

// Function to handle voice input and process the query

public static void voiceTransportEnquiry() {

try {

System.out.println("Listening for your query...");

// Code to capture voice input using JSAPI and convert it to text

// Implementation of this part depends on the specific JSAPI


library being used

// This is just a placeholder for demonstration

String query = "What are the details of route A?";

if (query.toLowerCase().contains("transport")) {

if (query.toLowerCase().contains("details")) {

String route =
query.substring(query.toLowerCase().indexOf("details") + 8);

getTransport(route.trim());

} else if (query.toLowerCase().contains("add")) {

System.out.println("Please provide details for the new


transport (route, schedule, fare):");

// Code to capture input for new transport details

// This is just a placeholder for demonstration


String[] details = {"Route B", "10:00 AM", "50"};

addTransport(details[0], details[1],
Integer.parseInt(details[2]));

} else {

System.out.println("Sorry, I couldn't understand your


request.");

} else {

System.out.println("Sorry, I couldn't understand your


request.");

} catch (Exception e) {

e.printStackTrace();

public static void main(String[] args) {

// Main function

while (true) {

voiceTransportEnquiry();

}
SQL queries on Voice-based Transport Enquiry
System implemented in Java:

1. **Retrieve all transport details:**

SELECT * FROM transport;

2. **Retrieve transport details for a specific route:**

SELECT * FROM transport WHERE route = 'Route A';

3. **Retrieve transport details for a route containing a specific


keyword:**

SELECT * FROM transport WHERE route LIKE '%Route%';

4. **Retrieve transport details for routes with fares less than a


certain amount:**

SELECT * FROM transport WHERE fare < 15;

5. **Retrieve transport details for routes with schedules in the


afternoon:**

SELECT * FROM transport WHERE schedule = 'Afternoon';

6. **Retrieve the total number of routes:**

SELECT COUNT(*) FROM transport;

7. **Retrieve the average fare for all routes:**

SELECT AVG(fare) FROM transport;

8. **Retrieve the route with the highest fare:**

SELECT * FROM transport WHERE fare = (SELECT MAX(fare)


FROM transport);

9. **Retrieve the route with the lowest fare:**


SELECT * FROM transport WHERE fare = (SELECT MIN(fare) FROM
transport);

10. **Update the fare for a specific route:**

UPDATE transport SET fare = 25 WHERE route = 'Route B';

11. **Delete a specific route:**

DELETE FROM transport WHERE route = 'Route C';

12. **Delete all transport details:**

DELETE FROM transport;

These SQL queries can be used to interact with the transport database in
the Java code to perform various operations like retrieving, updating, or deleting
transport details based on different criteria.

Market Potential/Competitive Advantage


According to HTF Market Intelligence, the Global Voice Recognition
System market to witness a CAGR of 16.8% during forecast period of 2023-
2028. The market is segmented by Global Voice Recognition System Market
Breakdown by Application (Control a Smart Home, Instruct a Smart Speaker,
Command Phones, Tablets) by Type (BEV, ICE, Others) by System (Speaker
dependent system, Speaker independent system, Discrete speech recognition,
Continuous speech recognition, Natural language) by Technologies (NLP, ML,
Deep Learning) and by Geography (North America, South America, Europe,
Asia Pacific, MEA). The Voice Recognition System market size is estimated to
increase by USD 18.7 Billion at a CAGR of 16.8% from 2023 to 2028. The
report includes historic market data from 2017 to 2022E. Currently, market
value is pegged at USD 9.4 Billion.

Market Trends:

Using Advanced System for Making Attractive Content and Adaptability of


New Technologies to Drive the Deployment

Market Drivers:
Increasing Demand of Technological Solution for Voice Recognition System
and Increasing Demand for Voice Recognition System and Shopping Systems

Market Opportunities:

Surging Business Opportunities for Voice Search in Local Businesses and


Rising Gaming Industry will boost the Voice Recognition System Technologies
Market

Conculsion & Status of Development


The current generation communicates with technologies more than
communicating with others. Thus everything has been digitalized so, the
proposed system is to create an webpage for user to identify their transport
information by using the voice recognition process. This proposed system is a
initiative for future development in creating an expert system for people to find
and identify their route, timing, bus and status of transport.

You might also like