AudioSummariser 0.1.1
Summarises the text generated from the audio files for quicker resolution. The audio files are typically the customer support recordings for now but the usecase can be extended to more dimensions. Sentiment is analysed and depicted visually.

# CustomerEchoEase

## Problem Statement

Customer Support Executives often spend substantial time summarizing and documenting customer interactions post calls, adding an extra burden to their workflow. After each call, they manually input the customer's concerns into systems for further analysis by support teams and managers.

## Aim:
Consider an executive who spends 15 minutes summarizing each of the 8 calls they attend daily. This totals an additional 2 hours spent on summarization, time that could have been used to handle 2-3 more customer requests. The aim of CustomerEchoEase is to enhance customer support efficiency, freeing up valuable time for executives to focus on tasks that truly matter.


## Overview

The Customer Echo Ease utility (A Generative AI based utility) is designed to fast-track the Time-To-Resolution (TAT) for customer care executives and support teams. By processing monologue/dialogue-based audio files (typically customer requests, complaints, or feedback) in WAV or MP3 format, this utility provides valuable insights to enhance customer support operations.

## Project Demo

Watch a brief demo of the project for a quick glimpse:

[![Project Demo](http://img.youtube.com/vi/3sXMmNe41uk/0.jpg)](http://www.youtube.com/watch?v=3sXMmNe41uk)

You can also find at : 

https://pypi.org/project/AudioSummariser/

## Features

1. **Text Summarization:** Quickly generates a summarized text from audio files, enabling faster Call-to-Action (CTA) and issue resolution.

2. **Sentiment Analysis:** Evaluates the sentiment of the customer during the call, providing a better understanding of the overall conversation tone.

3. **Fine-grained Sentiment Analysis:** Conducts sentiment analysis on a word-by-word basis, providing detailed insights into the sentiment of each word used in the conversation.

4. **Noise Reduction Techniques:** Implements advanced methods, including stopwords removal and tokenization, to enhance the accuracy and meaningfulness of the results by eliminating unnecessary noise from the text.

5. **Word Clouds:** Visualizes the most frequently used words in the conversation through appealing word clouds.

6. **Top 5 Words Bar Graphs:** Presents a bar chart showcasing the top 5 most frequently used words, aiding in identifying key themes.

7. **Overall Sentiment Pie Chart:** Represents the overall sentiment distribution of the conversation in the form of a pie chart.


## How It Works

1. **Audio Input:** Upload the audio file in WAV or MP3 format containing customer interactions.

2. **Text Summarization:** The utility processes the audio content and generates a concise text summary.

3. **Sentiment Analysis:** Analyzes the sentiment of the customer during the call (Positive, Negative, or Neutral).
 
4. **Word Clouds:** Creates visually appealing word clouds depicting the most used words in the conversation.

5. **Graphs and Charts:** Displays bar graphs for the top 5 most used words and a pie chart for overall sentiment distribution.


## Getting Started

1. **Prerequisites:**
    - Ensure you have the necessary Python libraries installed (requirements.txt).
    - Set up Google Drive API credentials for file uploading.

2. **Installation:**
    ```bash
    pip install -r requirements/requirements.txt
    ```
   You can also use :

   ```
   pip install AudioSummariser==0.1.0
   ```

3. **Usage:**
    - Run the application and upload your audio file.
    - Explore the generated summaries, sentiment analysis, and visualizations.
   
4. **Models:**
    - OpenAI's whisper for Audio to Text Conversion
    - Gemini-Pro for Text Summarisation.
      [Tried GPT, Bart-cnn, bart-base but the accuracy received is most in gemini-pro]


## Screenshots

![Audio_Text_Conversion](docs/images/aud_text_conversion.png)

![Text Summarization](docs/images/text_summarization.png)

![Sentiment Analysis](docs/images/sentiment_analysis.png)

![Word Clouds](docs/images/word_clouds.png)

![Top 5 Words Bar Graph](docs/images/top_words_bar_graph.png)

![Overall Sentiment Pie Chart](docs/images/sentiment_pie_chart.png)

Note - For some of the systems, installing Openai's whisper directly might not work.
Use :        

      "git+https://github.com/openai/whisper.git"

## Acknowledgments

- This project was developed to improve the efficiency of customer support teams by HardikGoel.

Feel free to contribute or report issues!

https://www.buymeacoffee.com/hardikgoel