Skip to main content

talk-summarizer

Python library to summarize talks. Turn a video file into a PDF report with a summary of each section of the talk.

summarize_talk.py - operates on a talk/lecture where there is a video of the speaker and slides.

  • uses ffmpeg to extract the audio from the video
  • uses whisper to transcribe the audio
  • uses OpenCV to identify slide transitions and extract slides
  • uses OpenAI to summarize each section

Installation

Install this library using pip:

pip install talk-summarizer

Usage

python talk_summarizer/summarize_talk.py \
    --output_dir output \
    --video_file video.mp4 \
    --no-summarize \
    --whisper_model tiny

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd talk-summarizer
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -r requirements.txt

To run the tests:

pytest

Install pre-commit hooks:

pre-commit install

Set API keys

Make sure your OPENAI_API_KEY is set as an environment variable in either your .bashrc or .zshrc file. For example:

export OPENAI_API_KEY=sk-1234...

TODO

  • get output directory working (ffmpeg not working with output directory)
  • create different tasks like transcribe (video --> audio, transcript, overall summary). Right now summarize_talk works on a video (video with slides --> audio, slide images, transcript, section summaries, overall summary, report)
  • add more unit tests
  • use pyproject.toml instead of setup.py

Metadata

Release files for talk-summarizer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for talk-summarizer 0.0.1
File Size Uploaded Provenance
talk-summarizer-0.0.1.tar.gz 10.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for talk-summarizer 0.0.1
File Interpreter ABI Platform
talk_summarizer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 20.5 kB

Release files / talk-summarizer-0.0.1.tar.gz

Download URL talk-summarizer-0.0.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5a2bad62c742e83b8853c718f2dfce9f8259e65e3a2befec68e53f611a0e644e
BLAKE2b-256 checksum
How to use checksums
fe8c18ed19b2b26b23eea538613e9c207bd5b0699fb8ba329a5e1a9963c5f8d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / talk_summarizer-0.0.1-py3-none-any.whl

Download URL talk_summarizer-0.0.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6101978dd5011f7acb1c39fd8ace2ffffcaf2bf3ace62c222d369f10c3ec4065
BLAKE2b-256 checksum
How to use checksums
ff9f55f3ada88bc3e0831c9fcfa238a5333cd6fa69f5707ce98712f1ebd1cb4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for talk-summarizer 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page