Yatri GPT is a travel information system that utilizes speech recognition and natural language processing to provide users with details about flights, restaurants, hotels, and nearby locations.
-
Speech-to-Text Conversion: Utilizes the SpeechRecognition library to convert spoken language into text.
-
Text-to-Speech Response: Implements text-to-speech functionality using the pyttsx3 library to provide audio responses.
-
Intent Recognition and Processing: Recognizes user intents from the spoken queries and processes them accordingly.
-
Flight Information Retrieval: Fetches flight details using the TripAdvisor API, including source, destination, date, and pricing.
-
Restaurant Information Retrieval: Retrieves restaurant information based on the specified city using the TripAdvisor API.
-
Hotel Information Retrieval: Fetches hotel details based on location, check-in, and check-out dates from the TripAdvisor API.
-
Nearby Location Information: Provides information about nearby locations, such as beaches, using external APIs.
Copy and paste the following commands to clone the Yatri-GPT repository from GitHub:
git clone https://github.com/your_username/Yatri-GPT.git
cd Yatri-GPT
pip install -r requirements.txt
Before running the application, ensure that you set up the necessary environment variables:
- Replace 'your_trip_advisor_api_key_here' with your actual TripAdvisor API key.
- Define values for latitude_n and longitude_n.
To run the application, execute the following command:
python app.py
Open your web browser and navigate to http://localhost:5000.
- templates: Contains HTML templates for the Flask application.
- utils.py: Includes utility functions for data extraction and API calls.
- Open the application in a web browser.
- Click on the microphone icon to start speech input.
- Speak your query, and the application will process and provide relevant information.
- Flask
- SpeechRecognition
- playsound
- pyttsx3
- requests
- Aman Agarwal - https://github.com/AmanAg744
- Anirudh Agrawal - https://github.com/AnirudhA124
- Yash Bharadwaj - https://github.com/meanmachine889
This project is licensed under the MIT License - see the LICENSE file for details.