Skip to main content

No project description provided

Project description

talk2pdf

talk2pdf converts videos of talks into a PDF with the transcript and associated screenshots.

Video Result

Prerequisites

talk2pdf uses OpenAI's APIs -- you will need an OpenAI API key.

Note Your API key is ONLY used to make OpenAPI calls.

  1. Create an OpenAI account
  2. Go to platform.openai.com
    1. Click on your account in the top right
    2. Click View API Keys
    3. Click "Create new secret key"
    4. You will need to provide this API key to talk2pdf (see below)

talk2pdf uses FFmpeg for video/audio operations and yt-dlp to download video from online streaming services.

brew install ffmpeg yt-dlp
apt-get install ffmpeg yt-dlp

Running

Warning This will cost ~$0.50 / hr of video

This will generate a PDF in the current directory:

With a youtube video

pipenv shell
pip install talk2pdf

export OPENAPI_SECRET=sk-...
python -m talk2pdf <youtube-url>

Or, with an existing video file

pipenv shell
pip install talk2pdf

export OPENAPI_SECRET=sk-...
python -m talk2pdf <video-file>

Configuration

talk2pdf looks in TALK2PDF_CONFIG_DIR, then XDG_CONFIG_HOME/talk2pdf, and finally $HOME/.config/talk2pdf for a config.json file. You can put your OpenAI key in there instead of setting it in the environment

{
  "openapi_secret": "sk-..."
}

talk2pdf uses TALK2PDF_CACHE_DIR, or XDG_CACHE_HOME/talk2pdf, or finally $HOME/.cache/talk2pdf as a cache directory. This is where intermediate files are stored.

Contributing

pipenv shell
pip install --editable .
python -m talk2pdf ...
pip install --upgrade build twine
rm -rf dist
python -m build
python3 -m twine upload dist/*

Roadmap

  • add timestamps to each paragraph

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talk2pdf-0.3.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talk2pdf-0.3.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file talk2pdf-0.3.0.tar.gz.

File metadata

  • Download URL: talk2pdf-0.3.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for talk2pdf-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e37a498a80ef9009f80deabdfb577a5bd5347641cc465632f00596c431fa3122
MD5 26ad15af943d074629c3855dfac657bc
BLAKE2b-256 28cfde15a0b353e662a814eaa6c6374213b829716cef781cdb3e8d302ac31053

See more details on using hashes here.

File details

Details for the file talk2pdf-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: talk2pdf-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for talk2pdf-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3be5d01315e6527005d8f6e293128da69e80a3b771dd36b906e4369b9fdc31e
MD5 5a6cd65dc82baf86c6afc53859462650
BLAKE2b-256 2ed90b9627defed0f3828cf904f1ca56fcbcec3feb7916acf830d8f9bedc8620

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page