Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

speakerjoin

Latest version: v0.1.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: LeeGyeongPil
0 Stars
0 Forks
2 Versions
141 Downloads
Python Repo language

Scan summary

speakerjoin was last scanned on 27 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.1.1.
  • Downloads: 141 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 27 Nov 2026 No rules fired
0.1.0 17 Nov 2026 No rules fired

No rules fired in 0.1.1

Findings

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

speakerjoin

English | 한국어

CI Python 3.10+ License: MIT Dependencies: none

Join a speech-to-text result and a separate speaker diarization result into speaker-labelled transcripts and subtitles (SRT, WebVTT, JSON, Markdown, text), and measure how trustworthy the alignment is. Pure Python standard library, no runtime dependencies, and it works on files, so you need no audio, model or API key.

Alignment quality table printed by the demo

The built-in demo merges a synthetic meeting and prints the quality numbers: 3 of 39 words got no speaker, and 8 words would have a different speaker if you assigned speakers per segment instead of per word.

Install

uv add git+https://github.com/LeeGyeongPil/speakerjoin

Or use it from a clone without installing it into a project:

git clone https://github.com/LeeGyeongPil/speakerjoin
cd speakerjoin
uv run speakerjoin demo

Needs Python 3.10 or newer. Runtime dependencies: none. To install uv: curl -LsSf https://astral.sh/uv/install.sh | sh.

Quick start

Merge the bundled synthetic sample (a faster-whisper style transcript and an RTTM speaker file) and print who said what:

from importlib.resources import files

import speakerjoin as sj

samples = files("speakerjoin").joinpath("samples")
transcript = sj.load_transcript(
    samples.joinpath("meeting.whisper.json").read_text(encoding="utf-8")
)
diarization = sj.load_diarization(samples.joinpath("meeting.rttm").read_text(encoding="utf-8"))

result = sj.merge(transcript, diarization)
print(result.report.words_total, result.report.unassigned, result.report.segment_word_disagree)
print(sj.to_text(result), end="")
39 3 8
SPEAKER_00: Welcome everyone to the weekly sync Next is Bob
SPEAKER_01: Thanks Alice I have two updates Budget is
SPEAKER_02: fine wait
UNKNOWN: no
SPEAKER_00: okay go Let us start with the roadmap review now
SPEAKER_02: Quick question about the 2027 deadline please
UNKNOWN: Thanks all

The first line reads: 39 words, 3 without a speaker, 8 whose speaker would change under per-segment assignment. UNKNOWN marks words that fall outside every speaker turn.

The same thing from the command line, writing a subtitle file with renamed speakers:

uv run speakerjoin merge src/speakerjoin/samples/meeting.whisper.json \
  --diar src/speakerjoin/samples/meeting.rttm -o out.vtt \
  --speaker-map SPEAKER_00=Alice --speaker-map SPEAKER_01=Bob
39 words, 7 utterances, unassigned 3.

The summary line goes to stderr; out.vtt starts like this:

WEBVTT

00:00:00.000 --> 00:00:02.900
<v Alice>Welcome everyone to the weekly sync Next

00:00:02.900 --> 00:00:03.600
<v Alice>is Bob

00:00:03.800 --> 00:00:07.250
<v Bob>Thanks Alice I have two updates Budget is

SRT output with speaker prefixes

Speaker-labelled SRT. A new cue starts at every speaker change, even in the middle of one transcript segment ("Next" / "is Bob" stay with Alice, "Thanks Alice" starts Bob).

For meeting notes, --format md groups the words by speaker with a start time (uv run speakerjoin merge ... --format md):

# Transcript

**SPEAKER_00** [0:00:00]

Welcome everyone to the weekly sync Next is Bob

**SPEAKER_01** [0:00:03]

Thanks Alice I have two updates Budget is

**SPEAKER_02** [0:00:07]

fine wait

(The first lines of the output; the full text continues with the remaining speaker turns.)

Supported formats

Times are converted to seconds everywhere. Use --stt-format / --diar-format (or format= in Python) to force a format; otherwise it is detected from the shape of the data. speakerjoin formats lists the names.

Speech-to-text input (load_transcript)

Format Produced by Required shape Word times
faster_whisper your own JSON dump of faster-whisper segments (it has no native JSON output) {"segments": [{"start", "end", "text", "words": [{"word", "start", "end", "probability"}]}]} yes, if run with word_timestamps=True
whisperx WhisperX result after alignment same segments[].words[], with score instead of probability; unaligned words (e.g. numbers) may lack start and are interpolated yes
openai_verbose OpenAI transcription with response_format="verbose_json" {"segments": [...], "words": [{"word", "start", "end"}]}; the words are a top-level list only if you request word timestamps
openai_diarized OpenAI diarized transcription {"segments": [{"start", "end", "text", "speaker"}]} no, segment level
deepgram Deepgram response results.channels[0].alternatives[0].words[] yes
assemblyai AssemblyAI transcript JSON utterances[] or top-level words[]; times in milliseconds yes
srt, vtt any subtitle file cues; WebVTT <v Name> voice tags are read as speakers no, one cue is one unit

Diarization input (load_diarization)

Format Produced by Required shape Notes
rttm pyannote (write_rttm), most diarization tools lines SPEAKER file 1 START DURATION <NA> <NA> speaker <NA> <NA> column 5 is the duration, not the end; pass --file-id when one file holds several recordings
pyannoteai pyannoteAI job result output.diarization[] and optionally output.exclusiveDiarization[], items {start, end, speaker} the exclusive list (no overlapping speakers) is preferred; --no-prefer-exclusive uses the plain one
json anything you write yourself a list, or {"turns": [...]}, of {"start": 0.0, "end": 2.2, "speaker": "alice"} seconds
Python objects in code only (start, end, speaker) tuples, or a pyannote Annotation

Pitfall: if the speech-to-text file has no word times (an OpenAI verbose_json request without word timestamps, subtitles), unit="auto" silently assigns one speaker per segment. Mixed or fallback runs are recorded as effective_unit (word, segment or mixed) in the report JSON, and the CLI prints one line on stderr:

Note: no word timing found, so speakers were assigned per segment. Request word timestamps from your speech-to-text tool for word-level results.

(Output of speakerjoin merge on a verbose_json file without a words list and a plain json turn file.)

Producing inputs

Sketches for making the input files. They are not run by this repository's tests, need their own packages (and, for pyannote, a model download that can take minutes on a CPU), and may need adjusting to the versions you install.

faster-whisper, written to the JSON shape above (docs, checked 2026-11-14):

import json

from faster_whisper import WhisperModel

model = WhisperModel("small")
segments, _info = model.transcribe("meeting.wav", word_timestamps=True)
data = {
    "segments": [
        {
            "start": s.start,
            "end": s.end,
            "text": s.text,
            "words": [
                {"word": w.word, "start": w.start, "end": w.end, "probability": w.probability}
                for w in s.words
            ],
        }
        for s in segments
    ]
}
with open("meeting.whisper.json", "w", encoding="utf-8") as f:
    json.dump(data, f, ensure_ascii=False)

pyannote.audio, written as RTTM (docs, checked 2026-11-14). Version 4 returns an object whose exclusive_speaker_diarization has no overlaps and is the recommended input for joining; older versions return the Annotation directly, and load_diarization also accepts an Annotation:

from pyannote.audio import Pipeline

pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization-community-1")
output = pipeline("meeting.wav")
with open("meeting.rttm", "w", encoding="utf-8") as f:
    output.exclusive_speaker_diarization.write_rttm(f)

OpenAI, with word timestamps requested so the result stays word level (API reference, checked 2026-11-14):

import json

from openai import OpenAI

client = OpenAI()
with open("meeting.wav", "rb") as audio:
    result = client.audio.transcriptions.create(
        model="whisper-1",
        file=audio,
        response_format="verbose_json",
        timestamp_granularities=["word", "segment"],
    )
with open("meeting.openai.json", "w", encoding="utf-8") as f:
    json.dump(result.model_dump(), f, ensure_ascii=False)

Then: uv run speakerjoin merge meeting.openai.json --diar meeting.rttm -o meeting.srt.

Core concepts

flowchart LR
    A[STT result<br/>words + times] --> C{merge}
    B[Diarization<br/>speaker turns] --> C
    C --> D[Speaker per word]
    D --> E[SRT / VTT / JSON / MD / TXT]
    D --> F[Quality report]
    F --> G[--fail-on thresholds]
  • Transcript: what was said, with times. Segments hold words; some formats (SRT, VTT, OpenAI diarized JSON) have no word times, so the segment is the smallest unit.
  • Diarization: who spoke when, as speaker turns. Turns of different speakers may overlap.
  • Assignment: each word gets the speaker whose turns overlap it the most (strategy="overlap"), or the speaker active at its midpoint ("midpoint"). Without word times it falls back to the whole segment (unit="auto").
  • Quality report: numbers that tell you whether to trust the result. See the table below.
Metric Meaning
unassigned_ratio share of words that no speaker turn covers
overlap_ratio share of words spoken while two or more speakers were active
boundary_ratio share of words whose start or end lies within tolerance (0.2 s) of a turn edge, where the label is most likely wrong
segment_word_disagree words that would get a different speaker if the whole segment were assigned to one speaker
speech_without_words_sec seconds of speaker turns where the STT produced no words

Other fields are in the output of speakerjoin report (see the screenshot in the next section).

How assignment works
  1. Speaker turns are sorted by start time; words are visited in time order and only the turns active around each word are examined, so 20,000 words against 2,000 turns stays fast.
  2. A word with a zero length (some tools report start == end) is widened to min_word_dur (0.02 s) around its centre (flag zero_length), so it can still overlap a turn.
  3. A word with no time at all is placed evenly between its neighbours (flag interpolated) instead of being dropped.
  4. The speaker with the largest summed overlap wins; ties go to the speaker whose turn came first. A word that no turn covers is UNKNOWN (null in JSON), or the nearest speaker with fill_nearest=True.
  5. Without word times the whole segment is the unit.
How it differs from WhisperX

WhisperX has a similar function, assign_word_speakers (largest overlap per word, optional nearest fill; source checked 2026-11-14). speakerjoin is not a drop-in replacement; the differences are on the input and reporting side: it reads RTTM, pyannoteAI JSON, subtitles and other vendors' JSON directly instead of a pandas DataFrame and WhisperX's own result; it keeps words without a start time (interpolated) rather than leaving them without a speaker; it widens zero-length words; and it returns the numbers above. Where both apply the same "largest overlap" idea, results are expected to agree, but this repository does not test against WhisperX.

API

All names are importable from speakerjoin.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases speakerjoin

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229