TalkTrace AI base
📖 English · Deutsch
LLM-assisted analysis of classroom and small-group transcripts. Quantitative metrics, qualitative coding, structured reports — packaged as a desktop app, AGPL-3.0 licensed.
base is the public distribution descended from the original TalkTrace-AI by Jami Schorling and Dennis Hauk (Leipzig University). base focuses on the stable, well-tested core; experimental features and the active research roadmap live in a private internal research version.
Highlights — Built-in T-SEDA codebook template (one click: codebook loaded, teacher-focused multi-coding with per-code confidence and a second review pass — just upload a transcript) · Five LLM backends with the EU-hosted LocalMind gateway as the GDPR-friendly default (plus OpenAI, Anthropic, Mistral, DeepSeek) · Custom OpenAI-compatible endpoints (own base URL + key) with one-click model refresh · Local audio transcription with in-app waveform trim (optional noScribe engine, 100% on-device) · Research-grounded formative teacher feedback (editable, DOCX/PDF) · GDPR Art. 13 consent-declaration generator (DOCX/PDF) · Streaming coding view · Human-in-the-loop code editing · Code-transition heatmap and over-time views · Auto-generated methods paragraph + reproducibility fingerprint · DOCX / PDF / XLSX / HTML / CSV exports · Light/Dark themes · EN/DE UI
Full feature list — FEATURES.md
About
A FLOSS, platform-independent web app for analysing verbal interaction in classroom and small-group settings. Built on Shiny for Python, it leverages LLMs to produce both quantitative metrics (participation, conversation shares) and qualitative coding (speech acts), and exports them as structured reports.
Backends: LocalMind (EU-hosted gateway, default) · OpenAI · Anthropic · Mistral · DeepSeek · custom OpenAI-compatible endpoint (own base URL + key)
Download (Windows, no Python needed)
Grab the latest TalkTraceAI-base-v1.2.0-win64.zip from GitHub Releases, unzip, and double-click TalkTraceAI.exe. No Python installation required.
For macOS / Linux or if you prefer running from source, see the Quickstart below.
Quickstart (from source)
Python ≥ 3.12 required (development target: 3.13). On Python 3.14, the embedded desktop window is unavailable — pywebview is skipped and the app opens in your default browser instead. Then pick your OS:
Windows
Double-click start.bat, or from a terminal:
start.bat
Python install: download from python.org and ensure "Add python.exe to PATH" is enabled — otherwise start.bat cannot locate the interpreter.
macOS
chmod +x start.sh
./start.sh
Python install: the Python shipped with macOS is typically outdated. Install a current version from python.org or via Homebrew (brew install python@3.13).
Linux
chmod +x start.sh
./start.sh
start.sh detects missing python3-venv / python3-pip and offers to install them via apt / dnf / pacman.
For a native desktop window (otherwise opens in your default browser):
sudo apt install gir1.2-webkit2-4.1 python3-gi # Debian/Ubuntu
Limitations:
- PDF export unavailable on Linux (relies on Microsoft Word) — use DOCX instead.
- Without a system keyring, API keys live only for the running session. Either start a keyring daemon, or rely on the bundled
keyrings.altfile fallback.
Launcher flags & development mode
| Flag (Unix) | Flag (Windows) | Effect |
|---|---|---|
--reinstall |
/reinstall |
Recreate the virtual environment from scratch |
--nowindow |
/nowindow |
Start headless — open at http://localhost:8000 |
--setup-only |
— | Provision the venv + dependencies, then exit |
For active development, use dev.bat (Windows) or ./dev.sh (Linux/macOS) — runs the app under shiny run --reload, auto-restarting on .py saves.
Interface
A Start tab is the landing page (workflow overview, entry tiles, current-configuration line, data-protection acknowledgment, quick-start checklist). The workflow then runs left to right — Transcription · Analysis · Results · Feedback — with Options alongside and Consent + Info on the right. LLM configuration (provider, model, switches, live cost estimate, Analyze) lives in the Analysis tab; the sidebar is organisation only — EN/DE switch and session save/restore/reset. The dark-mode toggle sits in the title bar.
Start tab (landing page)
The first screen on launch. A workflow strip (Audio → Transcript → Analysis → Feedback → Export) shows how far you are; entry tiles jump to a T-SEDA analysis (loads the built-in codebook with its presets — just add a transcript), transcription, analysis, the session history, or a no-key demo. A configuration line reports the active provider/model, and a one-time data-protection acknowledgment (pick explicit consent, fictive test data, or only my own utterances) gates LLM calls until confirmed.
Analysis tab
Document Input panel:
- Transcript (required) — must follow the noScribe format. The interactive multi-stage converter handles transcripts from other tools (e.g. aTrain) — speaker-label detection, timestamp stripping, bracket-annotation review, per-speaker mapping, side-by-side preview.
- Codebook (required for qualitative analysis) — see the example codebook. Codes apply to all speakers (teacher and students). Alternatively, load the built-in T-SEDA template with one click (official T-SEDA codes for dialogic classroom talk, DE/EN; T-SEDA Collective 2023, University of Cambridge, CC BY) — it also presets coding of teacher and student turns (context-aware) plus multi-coding with confidence.
- Teacher name (optional) — if present in the transcript, enables teacher-specific metrics.
- Group identifier and metadata — used for report labelling.
Configure the LLM and click Analyze in the tab's LLM configuration card; the app switches to Results on completion.
Cost estimate. The figure in the LLM-configuration card is a lower bound — transcript+codebook length × input price × ~4 for output. A cumulative cost tracker (in Options) sums spend across all your analyses.
Transcription tab (optional, local)
Turn an audio recording into a transcript entirely on your machine — the audio never leaves your computer. Powered by the standalone open-source engine noScribe (Whisper + pyannote), GPL-3.0, invoked only as a separate subprocess and installed on demand (~3 GB, one time, Windows).
Exposes the full set of noScribe options: audio in, output filename, start/stop range, language, model (fast / precise), speaker count (pre-filled from the group size), mark-pause, overlapping speech, disfluencies, timestamps. An in-app waveform editor lets you drag handles for start and end of the segment — no external tool needed. A live progress display (step, percentage, elapsed time) shows what's happening, and an editable transcript field lets you fix speaker labels or spelling before the result is handed straight into the Analysis tab or saved as a .txt file.
Best suited to 10–15 minute small-group recordings (CPU transcription ≈ 1.5× realtime with the fast model). See the in-app Info / License tab and NOTICE for the licensing and privacy details.
Feedback tab (optional, LLM)
Generate research-grounded, formative feedback for the teacher after an analysis has run. The Feedback tab takes the coded turns, the codebook definitions, and the quantitative metrics from the same session and produces a structured prose report along three axes — Stärken (strengths) · Entwicklungsfelder (growth areas) · Konkrete Umsetzungshinweise (concrete suggestions) — with a short reference list grounded in dialogic-teaching literature (T-SEDA, IRE/IRF, accountable talk, productive disciplinary engagement).
The generated text is fully editable in-place — you can tighten, rephrase, or strip sections before exporting to Word (.docx) or PDF. A live cost estimate and the cumulative cost tracker (in Options) apply here too.
You can also upload a corrected report (DOCX / XLSX / CSV / HTML) so the feedback rests on the codings you reviewed in Word or Excel rather than the model's raw output — it doubles as a standalone entry point in a fresh session (codes and metrics come out of the document, and the codebook is rebuilt from the report legend if present).
It is an aid, not a verdict — clearly framed as formative scaffolding for self-reflection, not summative assessment.
Consent tab (optional)
Generate a print-ready GDPR Art. 13 consent declaration for the training context — where a trainer team works with teachers and each teacher consents to processing their own recording. A pre-filled form (left) renders a live document preview (right) that you export to Word (.docx) or PDF.
The declaration reflects the real data flow: local transcription (audio stays on device) vs. the configured LLM as recipient. A cloud/local toggle drives the third-country transfer paragraph and a separate consent checkbox; missing mandatory fields surface as red !!! … !!! markers. The wording is adapted from the CC0-licensed Consent-Gen-RDMO (TU Dortmund).
It is an aid, not legal advice — the disclaimer is shown in the form and the document footer; have it reviewed by your data protection officer before use. See NOTICE.
Results tab
Split into quantitative and qualitative sections.
Quantitative (deterministic): participation metrics, conversation shares (absolute + relative), per-speaker turn stats (count / mean / median), three-segment over-time view.
Qualitative (LLM-coded): per-speaker coding (every turn carries a Sprecher label), code distribution plot stacked by speaker group (teacher vs. students, with the matching code × speaker-group table in the report), coded-impulse table, over-time code distribution, Markov-style code-transition heatmap, and an auto-generated methods paragraph for paper manuscripts (copy-to-clipboard, EN/DE). Every coding carries the model's confidence (e.g. EN (92 %)) — in single-coding on the one code, and with multi-coding enabled across the top 2 candidate codes in dedicated columns (matching T-SEDA's 0–2-codes-per-turn rule), ranked by confidence; uncertain candidates stay visible, the human judges. The DOCX/HTML report shades the certainty edges of each code cell (≥ 90 % and < 50 %) using the same anchors the prompt calibrates against. A second review pass automatically re-submits uncoded turns to the LLM for a careful re-check, and every cell stays hand-editable. All turns of the conversation appear in the table and reports, coded or not.
Options tab
- API configuration — keys for LocalMind, OpenAI, Anthropic, Mistral, DeepSeek, plus any number of your own custom OpenAI-compatible endpoints (add/rename/delete them in Options — each with a name, base URL and its own key, e.g. a self-hosted vLLM server and an institutional gateway side by side). Keys live in the OS keyring (Keychain / Credential Manager / SecretService); names and base URLs persist in your local config.
- Models for LLM Selection — edit the registry (add/remove models, set per-million-token prices); changes propagate to the Analysis-tab model picker in real time. A Load models from provider button refreshes the selected provider's list straight from its live catalogue (needs a saved key); embedding/audio/image models are filtered out and prices you already set are kept.
- Custom Prompts — modify the system + user prompts used for qualitative coding; defaults restorable any time.
- Cost tracker — cumulative spend across all analyses, per provider.
- Test the app (gold-standard self-test) — runs a known fixture and shows expected vs. actual to build trust before you analyse real data.
- Additional Options — defaults for teacher name, group ID, class size, advanced toggles like streaming.
Privacy
TalkTrace AI does not store transcripts or analysis results on any external server controlled by the maintainers. All data required for an analysis are held in browser/local memory while you interact with the tool.
Because LLM models are not hosted by the app, the backend communicates with external LLM providers during the qualitative coding step. The relevant transcript and codebook excerpts are transmitted via the provider's API — any server-side storage or logging then depends on that provider's policies and your account settings. The default provider is the EU-hosted LocalMind gateway, which keeps transcripts inside the EU; US- or China-hosted providers remain an explicit choice.
Audio transcription is fully local. The optional Transcription tab runs the noScribe engine on your own machine — the audio file is never uploaded to any maintainer-controlled or third-party server. This makes it a privacy-preserving alternative to cloud transcription services. See NOTICE for the third-party engine/model details and licensing boundary.
Sessions can be saved/restored locally as .pkl files; reports can be downloaded. API keys live in the OS encrypted credential vault — Keychain (macOS), Credential Manager (Windows), SecretService (GNOME Keyring, KWallet) on Linux.
Credits
TalkTrace AI base is maintained by Simon Filler at TU Dortmund University.
The original TalkTrace AI was developed by Jami Schorling and Dennis Hauk at the Chair for Research on Teaching and Learning in Civic Education, Leipzig University.
See NOTICE for full attribution.
Contributing
Contributions are welcome — please read CONTRIBUTING.md and CODE_OF_CONDUCT.md before opening a pull request. Security issues: see SECURITY.md.
License
GNU Affero General Public License v3.0 — see LICENSE and NOTICE.
The upstream TalkTrace-AI repository carries a CC BY-NC 4.0 notice. The base distribution is released under AGPL-3.0 with the explicit consent of the original authors (Schorling, Hauk); see NOTICE for the relicensing history.
Metadata
Release files for talktrace-ai-base 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| talktrace_ai_base-1.2.0.tar.gz | 431.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| talktrace_ai_base-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 869.4 kB
Release files / talktrace_ai_base-1.2.0.tar.gz
| Download URL | talktrace_ai_base-1.2.0.tar.gz |
|---|---|
| Size | 431.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e820ecf0a7dbb01b8702aa68bd9a9c427a0a0832efb5d71bc0b1b68dfc30b70
|
|
BLAKE2b-256 checksum How to use checksums |
fa8880fa5075256bd85cbc08e1185252c61995bea4f3f16a0e7cc596dc04c192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / talktrace_ai_base-1.2.0-py3-none-any.whl
| Download URL | talktrace_ai_base-1.2.0-py3-none-any.whl |
|---|---|
| Size | 438.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfb6537f21c2f0c15dae18aac2a1db0debefea60dc120378203a0cd1119132f5
|
|
BLAKE2b-256 checksum How to use checksums |
2c1a88d4964bb8987b3e91496245c6475823b504c061b6ecd6b556ff2d22c5dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|