Giter VIP home page Giter VIP logo

meetingassistant.py's Introduction

๐ŸŽ™๏ธ Meeting Assistant

This program provides functionality to record meetings and then generate summaries of the transcribed audio using OpenAI's GPT-3 language model.

ui_picture

๐Ÿš€ Prerequisites

To run this program, you will need:

  • Python 3.7 or higher
  • ffmpeg installed on your system. If not:
    sudo apt install ffmpeg

๐Ÿ”ง Installation

  1. Clone this repository
  2. Create an enviroment and install dependencies
  python3 -m venv .venv
  source .venv/bin/activate
  pip install -r requirements.txt

๐Ÿ”‘ Required Environment Variables

This program requires an OpenAI API key to function. To set up your environment variables:

  1. Create a new file named .env in the root of this directory
  2. Add the following line to your .env file: OPEN_API_KEY=<your_api_key>
  3. Replace <your_api_key> with your actual OpenAI API key.

๐Ÿ› ๏ธ Usage

UI

Launch the Web-UI:

./run.sh

Launch the GUI:

python3 gui/gui.py

Record

To record a meeting, run:

python model/model.py record <output_file_name>.mp3

This will record the audio and save it to a file with the specified name.

Summarize

To generate a summary of an audio file, run:

python3 model/model.py summarize <audio_file_name>.mp3 

This will generate a summary of the transcribed audio using OpenAI's GPT-3 language model in the same audio language.

Translate and Summarize

To generate a summary of an audio file and translate it into <language_key>, run:

python3 model/model.py summarize <audio_file_name>.mp3 <language_key>

You can see the language keys in the language_roles.yaml file.

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ’ผ Variables to tune

Feel free to change:

This program has several variables that can be tuned to change its behavior. These variables are declared at the beginning of the program:

  • OS: Set this to "linux" or "MAC" depending on your operating system.
  • DEVICE: Set this to "cuda:0" if you have an NVIDIA GPU and want to use it to accelerate processing, or "cpu" to use the CPU instead.
  • WHISPER_MODEL: The name of the pre-trained Whisper model to use for transcribing the audio.
  • ENV_OPENAI_KEY: The name of the environment variable that contains your OpenAI API key.
  • TEMPERATURE: The "temperature" parameter to use when generating summaries with GPT-3. Higher values will generate more diverse summaries, while lower values will generate more conservative summaries.
  • GPT_MODEL: The name of the GPT-3 language model to use for generating summaries.
  • GPT_ENCODER: The name of the GPT-3 tokenizer to use for encoding text.
  • SIZE_CHUNK: The size of each "chunk" of text to send to GPT-3 for summarization. Larger chunks will result in fewer requests to the API, but may be slower to process.
  • Command prompts and command role in the language_roles.yaml file.

meetingassistant.py's People

Contributors

mvanzulli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.