Skip to main content

Talk Powerpoint Generator

CI License

This program automatically generates PowerPoints about any topic. These presentation slide decks can be used by improvisers for the improvisational comedy format "Improvised TED talk" or "Powerpoint Karaoke". In such games, the actors have to present an unseen presentation slide deck, but pretend to be an expert and explain "their" slide show choices.

Demo

Try out this generator on our online platform: talkgenerator.com.

Example

Automatically Generated

Install

You need Python 3.11 or newer. Install the generator from PyPI, ideally in a virtual environment:

pip install talkgenerator

That's all classic talks need. Extras add the language models that write talks, and the MCP server:

Extra For
talkgenerator[openai] OpenRouter's free models, OpenAI's models and the models of your ChatGPT plan
talkgenerator[anthropic] Claude
talkgenerator[gemini] Google's Gemini
talkgenerator[llm] all three of the above
talkgenerator[mcp] talkgenerator mcp, for Claude Desktop and other MCP clients
pip install 'talkgenerator[llm,mcp]'

On its first run, the generator downloads the NLTK data it needs (about 30 MB). Coming from talkgenerator 4? See Migrating from 4.x.

To work on the generator itself, clone this repository and use uv:

uv sync                                                   # install the dependencies into .venv
uv run talkgenerator --topic "peanuts" --num_slides 10

Make a talk

# A 10-slide talk about peanuts, saved in ./output and opened afterwards
talkgenerator --topic "peanuts" --num_slides 10

A few more:

talkgenerator login openrouter                               # from now on, OpenRouter's free models write your talks
talkgenerator --topic_or_title "Why I Joined a Penguin Cult"   # a topic or a title: talkgenerator tells which
talkgenerator --topic penguins --language nl                 # in Dutch (with a language model)
talkgenerator --topic penguins --theme "1997 WordArt"        # a look; by default, the talk's seed picks one
talkgenerator --topic penguins --theme_families "neon,blueprint"   # a look the seed picks, of these families only
talkgenerator --topic penguins --schema ted                  # copyright-free images only, for decks shown in public
talkgenerator --topic penguins --schema pitch                # a startup pitch: the problem, the market, the ask...
talkgenerator --topic penguins --schema academic             # a conference talk: the method, p-values, Reviewer 2
talkgenerator --topic penguins --schema corporate            # an all-hands: KPIs against target, the new org chart
talkgenerator --topic penguins --schema keynote              # a product keynote: the reveal, the demo, one more thing
talkgenerator --topic penguins --schema court                # a court case: Exhibit A, the alibi, the verdict
talkgenerator --topic penguins --persona kindergarten_teacher # who presents it: by default, the seed picks
talkgenerator --topic penguins --schema random               # a format the persona favours: a founder pitches more
talkgenerator --topic penguins --llm none --theme classic --name_styles classic --persona none   # closest to 2019

The command line lists every option, and the commands for plans, checks, sign-ins and the MCP server.

How it works

talkgenerator picks a talk's slides with the talk's seed: a title slide, then slides about the presenter, history, bold statements, quotes, captioned images, gifs and memes, charts, diagrams, quizzes and more, each kind in its place and at most a few times, and conclusions at the end. The seed also picks who presents it, a persona such as a startup founder or a medieval historian, whose favourite kinds of slides come up more often (a founder's KPI tiles, a historian's timelines), and who colours the title, the presenter's name, the theme and the pictures. The same seed gives the same talk. Besides TED-like talks, there are startup pitches (--schema pitch), academic conference talks (--schema academic), all-hands meetings (--schema corporate), product keynotes (--schema keynote), late-night infomercials (infomercial), nature documentaries (documentary), court cases (court), museum tours (museum), wedding toasts (wedding) and school book reports (book_report), whose slides go through their arcs: from the problem to the market, the traction and the ask; from the motivation to the method, the results with their p-values and the questions (pitches and academic talks open on their why most of the time: a problem that hooks the audience); from the agenda to the KPIs against their targets, the new org chart and Q&A; from a big opening statement to the reveal, a demo that crashes and one more thing; from an everyday problem to the gadget, its testimonials and "But wait, there's more!"; from the opening shot to a rare sighting and the dangers the topic faces in the wild; from the charges to Exhibit A, the alibi and the jury's verdict; from the house rules to a masterpiece, a botched restoration and the gift shop; from how the couple met to the toast; or from the book's cover to its moral and "The End".

  • A language model can write what goes on those slides: the whole talk in one request, with a thesis, callbacks to earlier slides, and a made-up name and job for the presenter; or, at the Advanced level (the default on a model that costs), as it plans the talk first and then writes its slides in parallel, for cleverer talks that come as quickly. OpenRouter's free models do so whenever there's an OpenRouter key, at no cost, and so do your ChatGPT plan's once you've signed in with ChatGPT; a paid model only when you ask for it (Language models).
  • The classic generator writes them otherwise, and every slide the model gets wrong: templates and grammars, words related to the topic, quotes, how-tos and pictures from many sources. It's the method of the EvoMUSART 2019 paper, with more kinds of slides since: --llm none --theme classic --name_styles classic --persona none (the classic generator, the 2019 template, random names and no persona) comes closest to a talk of 2019.
  • Claude can write the talk too, as a plan that talkgenerator renders, through the Skill or the MCP server (Use it with Claude).

Images come from Unsplash, Pexels, Pixabay, Openverse, Wikimedia Commons, the Met and other museums, NASA, Reddit, GIPHY, InspiroBot and ShitpostBot, in a look that fits the slide (stock photos, old photographs, museum art, weird pictures...), each credited on its slide, with its license when it's openly licensed or public domain. An image generator draws a few of them, when you ask for one. Talks come in themes, from clean keynote and hacker terminal to chalkboard and 1997 WordArt (Images and themes).

Every talk becomes a deck: plain, versioned JSON data with every text, image, credit and layout of its slides. The PowerPoint is drawn from it, talkgenerator.com shows it in the browser, and a saved deck renders again as the same slides (Python).

API keys

Every key is optional: without any, talkgenerator makes classic talks with the image sources that need no key. Copy .env.example to .env in the folder you run the generator from, and fill in the keys you have: image sources (Reddit, Unsplash, Pixabay, Pexels, GIPHY, Openverse), and language models (OPENROUTER_API_KEY for the free models, which talkgenerator login openrouter gets for you too, ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY). Keys and settings says where to get each key, and lists every setting.

Route A 10-slide talk costs
Classic, or OpenRouter's free models (50 talks a day, or 1,000 once the account has bought $10 of credits) $0
Your ChatGPT plan (talkgenerator login chatgpt), or Claude through the Skill part of your plan's usage
Claude Haiku 5.5, Sonnet 5.5 or Opus 5.5, with your own key about $0.003, $0.06 or $0.12 (Advanced, the default; Basic: about half)
Gemini 3.5 Flash-Lite or 3.8 Flash, with your own key about $0.006 or $0.01 (Advanced; Basic: about half); nothing on Gemini's free tier, within its limits

Use it with Claude

Claude can write the talk itself, on your own Claude plan, and leave the rest to talkgenerator: finding images it may use, crediting them, laying out the deck and saving the PowerPoint.

  • The Skill, for Claude Code: /plugin marketplace add twinters/talk-generator, then /plugin install talkgenerator@talk-generator. Claude writes a plan, renders it with talkgenerator render, and fixes what didn't come out.
  • The MCP server, for Claude Desktop and other MCP clients: talkgenerator mcp gives talkgenerator's commands as tools, on your computer, with your keys. Nothing of it is hosted.

Use it with Claude says how to set up each.

Using it from Python

from talkgenerator import generator
from talkgenerator.models.events import TalkFinished
from talkgenerator.render.powerpoint import render_pptx

for event in generator.stream_talk("default", 8, topic="peanuts", theme="random"):
    print(event.event)  # talk.started, slide.ready (8 times, and once more for the closer), talk.finished
    if isinstance(event, TalkFinished):
        render_pptx(event.deck).save("peanuts.pptx")

stream_talk hands over the talk while it's made, a slide at a time, and ends with the whole deck. With early=4, it also sends early versions of the last four slides early on, a quick one about each slide's own topic, for a presenter who reaches a slide before it's made (with spares=3, three spare slides about the talk's topic); with slide_seconds=8, a slide that isn't made within 8 seconds comes at once with what's quick, and the real slide takes its place once it's made after all; and with progress=True, it says how far the talk is, from its start (talk.progress: asking the language model, planning, writing, composing). Python covers the events, decks, plans and the catalogs for a settings menu. generator.generate_presentation(), talkgenerator 4's way, keeps working throughout talkgenerator 5, with a deprecation warning.

Documentation

Tests

Tests live in tests/. Many of them talk to the live APIs, and are marked as network tests:

uv run pytest                     # everything (tests needing missing API keys are skipped)
uv run pytest -m "not network"    # only the offline tests, as in CI
uv run pytest -m "not network and not slow"  # the quick set, while you work: a few minutes
uv run pytest -m "not network" --bundled-fonts-only  # measuring texts as CI does, without this computer's fonts
uv run ruff check . && uv run ruff format --check .
uv run mypy                       # type checking

The slow tests draw whole decks in every theme family, or sweep every template: about 200 of the offline tests, and most of their time (over an hour on one core). Run them, or the files of what you change, before you merge.

Type checking is gradual: mypy checks the whole package, and the modules listed under [[tool.mypy.overrides]] in pyproject.toml must be fully annotated. Add a module to that list once you've typed it.

On Windows on Arm, the dev dependencies leave out the MCP SDK, which doesn't install there, and the MCP server's tests are skipped. To run them, use an x64 Python, in a virtual environment of its own outside the repository (so that .venv stays as it is): set UV_PROJECT_ENVIRONMENT to its folder, and run uv run --extra mcp --python cpython-3.12-windows-x86_64-none pytest tests/test_mcp_server.py.

To check the talks themselves, uv run talkgenerator check generates talks on a set of topics with the live sources (--quick for 3 topics, --all for 30), checks them, generates each again with its seed to see that it comes out the same, and writes a report to output/check-report.json. It exits with an error when a talk is broken: a slide without what it needs, or template code such as {seed} on a slide.

GitHub Actions runs the linter, the type checker and the offline tests on every push and pull request, and checks the installed dependencies for known vulnerabilities with pip-audit. A weekly "canary" workflow runs the network tests against the live APIs, and opens an issue when one of them broke. It uses the API keys stored as repository secrets (REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USER_AGENT, UNSPLASH_ACCESS_KEY, PIXABAY_KEY, PEXELS_KEY, GIPHY_API_KEY); tests whose keys are missing are skipped.

Releasing

New versions are published to PyPI from GitHub; see RELEASING.md.

Credits

This generator is made by Thomas Winters and Kory Mathewson, with contributions from Shaun Farrugia and Julian Faid.

If you would like to refer to this project in academic work, please cite the following paper. Its method lives on as the classic generator, which makes every talk without a language model: talkgenerator --llm none --theme classic --name_styles classic --persona none comes closest to the paper's talks, in their look (with the kinds of slides added since).

Winters T., Mathewson K.W. (2019) Automatically Generating Engaging Presentation Slide Decks. In: Ekárt A., Liapis A., Castro Pena M. (eds) Computational Intelligence in Music, Sound, Art and Design. EvoMUSART 2019. Lecture Notes in Computer Science, vol 11453. Springer, Cham

@InProceedings{winters2019tedric,
    author="Winters, Thomas
    and Mathewson, Kory W.",
    editor="Ek{\'a}rt, Anik{\'o}
    and Liapis, Antonios
    and Castro Pena, Mar{\'i}a Luz",
    title="Automatically Generating Engaging Presentation Slide Decks",
    booktitle="Computational Intelligence in Music, Sound, Art and Design",
    year="2019",
    publisher="Springer International Publishing",
    address="Cham",
    pages="127--141",
    isbn="978-3-030-16667-0"
}

License

MIT License. Copyright (c) 2018-2020 Kory Mathewson and Thomas Winters

Metadata

Release files for talkgenerator 5.0.0

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

Source distribution (sdist)

Source distribution for talkgenerator 5.0.0
File Size Uploaded Provenance Actions
talkgenerator-5.0.0.tar.gz 5.5 MB With provenance Details for talkgenerator-5.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for talkgenerator 5.0.0
File Interpreter ABI Platform Actions
talkgenerator-5.0.0-py3-none-any.whl Python 3 none any Details for talkgenerator-5.0.0-py3-none-any.whl

Total release size: 10.8 MB

Release files / talkgenerator-5.0.0.tar.gz

Download URL talkgenerator-5.0.0.tar.gz
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
352217d4cc864316f574c224652d4dfc99178209c4c9350278fea5732257196e
BLAKE2b-256 checksum
How to use checksums
29516e898d877c66967e876d53efdf294639bdd212154e9595160e9d5b063132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / talkgenerator-5.0.0-py3-none-any.whl

Download URL talkgenerator-5.0.0-py3-none-any.whl
Size 5.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a32291927b30486bd099018c264e1ad65803e2f86b1a898a3ed327ad482bb3b8
BLAKE2b-256 checksum
How to use checksums
1a434f90614ec110302aee83f6916f80186bd7b9b5e1a6d9035256627e44892d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for talkgenerator 5.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for talkgenerator-5.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

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

5.0.0 This release

2 release files Full 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