Skip to content

Gita Summarizer extracts key insights from the Bhagavad Gita, aiding comprehension. Built with Streamlit, Azure Speech-to-Text, and LLMWare for summarization.

License

Notifications You must be signed in to change notification settings

Sgvkamalakar/Gita_Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gita Summarizer

Condense, Comprehend and Connect with Gita...

Overview

The "Gita Summarizer" is an application designed to distill the profound teachings of the Bhagavad Gita into concise and comprehensible summaries. This tool leverages the capabilities of Azure Speech-to-Text and LLMWare's powerful summarization models to provide users with insightful summaries of the Gita's chapters and verses

Features

  1. Real-time Speech Input:

    • Users can deliver speech directly through their microphone.
    • The application promptly transcribes the speech in real-time.
    • Summarized versions of the transcribed text are provided for streamlined understanding.
  2. Upload Audio File:

    • Users have the option to upload audio files in WAV format.
    • The application processes the uploaded audio, transcribing it into text.
    • Summaries of the transcribed text are automatically generated.
  3. Interactive User Interface:

    • Intuitive and user-friendly interface offering options for real-time speech input or file upload.
  4. Speech Recognition and Summarization:

    • Harnesses the power of Microsoft Azure's Speech-to-Text API for precise speech recognition.
    • Incorporates LLMware's SLIM Summary Tool to condense transcribed text effectively.

Technology Stack

  • Frontend:

    • Streamlit: For building the interactive web interface.
  • Backend:

    • Microsoft Azure Speech Service: Utilized for speech recognition tasks.
    • LLMware's SLIM Summary Model: Employed for text summarization.
  • Languages and Libraries:

    • Python: Primary programming language.
    • Streamlit: Facilitates UI components and interactions.
    • Requests: Enables HTTP requests to the speech recognition API.
    • Azure.cognitiveservices.speech: Azure SDK utilized for managing speech-to-text functionality.

How It Works

1. Real-time Speech Input:

image

  • Upon selecting "Real-time Speech Input," the application configures the microphone to capture user speech.
  • Captured speech is then forwarded to Azure's Speech Service for transcription.
  • The transcribed text undergoes summarization using the SLIM Summary Tool before being presented to the user.

2. Upload wav Audio File:

image

  • Users opting for "Upload Audio File" can upload their audio files directly.
  • Uploaded files are sent to Azure's Speech Service via an HTTP POST request for transcription.
  • Post transcription, the text is summarized using the SLIM Summary Tool and displayed to the user.

3. Text Input:

image

  • Users can directly type or paste text into the app to receive an instant summary.
  • The app processes the input text and provides a concise summary in seconds.
  • Easily input text and get clear, summarized information with just a few clicks.

Demo 📹

Demo.mp4

Use Cases for Gita Summarizer

  • Student Aid: Quickly grasp key concepts for study sessions and exams.
  • Teaching Tool: Prepare breif summaries for lessons and sermons.
  • Personal Reflection: Enhance spiritual practice with daily verse summaries.
  • Group Discussions: Generate discussion points for study groups and book clubs.
  • Content Creation: Create focused scripts and articles on the Bhagavad Gita.

Getting Started

To commence with GIta Summarizer:

  1. Ensure possession of a valid subscription key and service region for Microsoft Azure Speech Service.
  2. Clone the repository using
    git clone https://github.com/Sgvkamalakar/Gita_Summarizer.git
  3. Install the requirements
    pip install -r requirements.txt
  4. Configure the essential environment variables (subscription_key, service_region, token).
    subscription_key="<subscription_key"
    service_region="<service_region>"
    token="<auth_token>"
  5. Run the Streamlit application and engage with it via the user-friendly web interface using the following command.
    streamlit run app.py

Contributor

Kamalakar Satapathi

Connect with me on LinkedIn

About

Gita Summarizer extracts key insights from the Bhagavad Gita, aiding comprehension. Built with Streamlit, Azure Speech-to-Text, and LLMWare for summarization.

Topics

Resources

License

Stars

Watchers

Forks

Languages