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

srtspeak

Latest version: v0.1.11

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: HirofumiUkawa
0 Stars
0 Forks
5 Versions
414 Downloads
Python Repo language

Scan summary

srtspeak was last scanned on 29 Nov 2026 at version 0.1.11. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 2 were published within 6 days (24–29 Nov 2026).
  • Findings: No rules fired in version 0.1.11.
  • Downloads: 414 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.11 LATEST 29 Nov 2026 No rules fired
0.1.10 24 Nov 2026 No rules fired
0.1.9 18 Nov 2026 No rules fired
0.1.8 17 Nov 2026 Not shown
0.1.7 8 Nov 2026 Not shown

No rules fired in 0.1.11

Findings

Findings for v0.1.11. 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.11; other versions have their own rules, not their own score.

README

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

srtspeak

Multilingual SRT TTS. Forces each cue into its exact start/end window (xAI Grok TTS + ffmpeg).

Also includes SRT→SRT translation (translate) and glossary suggestion (glossary-suggest) via xAI's Responses REST API (default model grok-4.7, same XAI_API_KEY).

Authoritative design: DESIGN.md (implementation-aligned).\ Translate design: docs/SRT_TRANSLATE_DESIGN.md.

Languages: English | 日本語

Requirements

Item Detail
OS Windows / macOS / Linux (developed and verified on Windows)
Python 3.11+
ffmpeg / ffprobe Prefer on PATH; optional fallback via imageio-ffmpeg
API key XAI_API_KEY only for real TTS / translate / glossary / ja_yomi (dry-run makes no text-model request)

Package version: 0.1.11 (pyproject.toml).

Install

From PyPI:

python -m pip install srtspeak

Optional ffmpeg fallback via pip:

python -m pip install "srtspeak[ffmpeg]"

Core install already includes PySide6 (GUI) and keyring (OS credential store).

After install, the srtspeak command is available:

srtspeak --help
srtspeak doctor
From source (development)

Clone the repository, then editable install from the repo root:

git clone https://github.com/awaku7/srtspeak.git
cd srtspeak
python -m pip install -e ".[ffmpeg,dev]"

Dev extras ([dev]): pytest / ruff / Babel / keyring.

Without install (repo checkout only):

set PYTHONPATH=src
python -m srtspeak --help

There is no [ja] extra. Japanese kanji→hiragana preprocess (ja_yomi) uses the Responses REST API with the same XAI_API_KEY (default on for lang=ja). Text generation defaults to grok-4.7; TTS continues to use the separate /v1/tts endpoint. Responses are sent with store: false. No xAI SDK or gRPC dependency is required.

Launch

After pip install (PyPI or editable), use the srtspeak entry point:

srtspeak gui
srtspeak doctor
srtspeak --help
srtspeak dry-run --srt GRAN_TENKU_japan.srt --lang ja
python -m srtspeak gui

When ffmpeg is missing

Resolution order (core/ffmpeg_resolve.py):

  1. ffmpeg / ffprobe on PATH (shutil.which)
  2. Optional dependency imageio-ffmpeg bundled binary (get_ffmpeg_exe())
  3. Otherwise FFmpegNotFoundError
Situation Behavior
srtspeak doctor Prints ffmpeg: MISSING (...). Exit code 0 (diagnostics only)
dry-run (build) ffmpeg not required (parse + char count + cost estimate only)
Real build / build-all Fails at fit stage. CLI exit code 2
translate / glossary-suggest ffmpeg not required
imageio-ffmpeg only Works, but ffprobe may be (none). Full PATH ffmpeg is recommended
Install examples (Windows)

WinGet (recommended):

winget install Gyan.FFmpeg

Then in a new terminal:

ffmpeg -version
ffprobe -version
srtspeak doctor

If you prefer not to change PATH:

python -m pip install "srtspeak[ffmpeg]"
srtspeak doctor

doctor shows source: path for system ffmpeg, or source: imageio_ffmpeg for the pip bundle.

xAI (Grok TTS / Responses API) signup and API key

TTS is xAI Grok only (POST https://api.x.ai/v1/tts).\ Japanese yomi, SRT translate, glossary-suggest, and language detection use Grok 4.7 via the Responses REST API (POST /v1/responses, store: false). TTS remains on the separate /v1/tts endpoint. Create the key in the console.

1. Account
  1. Open https://console.x.ai/
  2. Sign up / log in (xAI account)
  3. Accept terms and set up billing / credits as guided
    • TTS is usage-based. dry-run estimate uses $15 / 1M characters (implementation unit price)
    • ja_yomi / translate / glossary Chat calls are additional usage when enabled
2. Create an API key
  1. Open API Keys (or equivalent) in the console
  2. Create a new key
  3. Copy the value (often starts with xai-)
    • It may not be shown again — put it in an env var immediately
  4. Do not put the key in chat, Git, report.json, or screenshots

Official docs:

3. How this tool reads the key
Rule Detail
Variable XAI_API_KEY only
CLI flag No --api-key (avoids shell history)
Persistence No .env; never written to report/logs/gui_settings.json
Resolve order env → session → OS keyring → legacy Windows DPAPI (migrate) → CLI getpass / GUI mask
dry-run Key optional (text-model requests are skipped if missing)
Real TTS / translate / glossary resolve chain; missing → exit code 2
GUI Key-ready state locks the field; Change / Override enables a session override. Save on this PC writes to OS storage; Clear saved removes only the stored key, not environment/session keys.

Windows cmd (current window only):

set "XAI_API_KEY=xai-..."
srtspeak doctor

PowerShell:

$env:XAI_API_KEY = "xai-..."
srtspeak doctor

Persist for new terminals (cmd):

setx XAI_API_KEY "xai-..."

doctor shows presence only (source label):

XAI_API_KEY: set (env)
XAI_API_KEY: set (keyring)
XAI_API_KEY: set (dpapi)

or:

XAI_API_KEY: missing

Invalid key / insufficient balance surfaces as TTS error: ... / translate error: ... during run (exit code 1).

Commands

srtspeak --help
srtspeak doctor
srtspeak languages
srtspeak voices
srtspeak gui
srtspeak build --help
srtspeak build-all --help
srtspeak dry-run --help
srtspeak translate --help
srtspeak glossary-suggest --help
Command Purpose
doctor Check XAI_API_KEY, ffmpeg/ffprobe, ja_yomi, translate, glossary-suggest, PySide6
languages Language codes sendable to the API
voices Grok voices (API if key present, else builtin; male + female)
dry-run Parse + char count + TTS cost estimate (no ffmpeg)
build Generate one language (TTS)
build-all Generate multiple languages in sequence
translate SRT→SRT multi-target translation (Grok 4.7 Responses; timing-locked)
glossary-suggest Propose glossary JSON from source SRT via Grok 4.7 Responses
gui PySide6 GUI (Build + Translate tabs)

Global options:

--locale en|ja     UI locale (default: SRTSPEAK_LOCALE → LC_ALL/LANG → system → en)
--verbose / --quiet

Place --quiet / --verbose before the subcommand:

srtspeak --locale ja doctor
srtspeak --verbose build --srt sample.srt --lang ja --dry-run

Input / output layout

TTS build

--out is the output root. Artifacts always go under {out}/{lang}/.

out/{lang}/
  cues/{source_token}/       per-cue audio (normalized), per input SRT
  fitted/{source_token}/     duration-fitted audio, per input SRT
  {output_stem}_{source_id}_{lang}.wav
  {output_stem}_{source_id}_{lang}.mp3 # if --also-mp3
  report_{source_token}.json # report for this input SRT
  report.json            # latest-run compatibility report
out/work/{lang}/
  raw/{source_token}/
  cache/
  ja_yomi_cache.json     when ja + ja_yomi
  • Default root: out → e.g. out/ja/
  • {source_id} is the first 12 hex digits of SHA-256 over the normalized absolute SRT path; {source_token} is {input_stem}_{source_id}.
  • {output_stem} is the input filename stem with a trailing _{lang} removed, if present.
  • --out out/en with --lang en → out/en/ (no double nesting)
  • --out artifacts with --lang pt → artifacts/pt/
  • build-all writes summary.json at the out root
Translate

--out default: out/srt_gen. Work cache under out/work/translate/by_out/ (keyed by output SRT file name).

out/srt_gen/
  translate_report.json
  {target}/                         # BCP-47 token (e.g. en, pt-BR)
    {source_stem}_{target}.srt      # naming=stem (default)
    GRAN_TENKU_{target}.srt         # naming=gran_tenku
out/work/translate/by_out/
  {target}__{out_srt_name}.json   # e.g. en__GRAN_TENKU_en.srt.json

Usage

Environment check
srtspeak doctor

Before a real build you typically want:

  • XAI_API_KEY: set (env)
  • ffmpeg: path with source: path (or imageio_ffmpeg)
  • ja_yomi: xAI Responses REST (Grok 4.7)
  • translate: xAI Responses REST (same XAI_API_KEY)
  • glossary-suggest: xAI Responses REST (same XAI_API_KEY)
Cost estimate (no ffmpeg)
srtspeak dry-run --srt GRAN_TENKU_japan.srt --lang ja
Single-language build
set "XAI_API_KEY=xai-..."

srtspeak build --srt GRAN_TENKU_japan.srt --lang ja --voice-id leo
srtspeak build --srt GRAN_TENKU_English.srt --lang en --voice-id leo --out out
srtspeak build --srt GRAN_TENKU_Portugus.srt --lang pt --voice-id leo

Main options:

Option Meaning Default
--srt Input SRT required
--lang Internal key ja / en / pt … may be guessed from filename
--language-code BCP-47 sent to API lang default (pt→pt-BR)
--out Output root (lang appended) out
--work-dir Work root out/work
--voice-id Voice ID (or lang=id for build-all) leo
--short-mode pad / stretch pad
--max-speed Cap on atempo product; over → hard_trim none
--tts-speed Grok synthesis speed multiplier (0.7–1.5); final cue-window fitting still applies 1.0
--tail-pad-ms Silence after last cue end (no base_wav) 0
--base-wav Mix narration onto this WAV (keeps base rate/ch) none
--ja-yomi / --no-ja-yomi JA kanji→hiragana via Grok 4.7 Responses REST API on
--strip-emoticons / --no-strip-emoticons Strip kaomoji for TTS only; emoji kept; SRT unchanged on
--no-cache Ignore existing TTS/ja_yomi caches (still write after success) off
--limit N First N cues only all
--dry-run Estimate only off
--also-mp3 Also write mp3 of final track off
--jobs Parallelism (MVP: 1 only) 1

Smoke a few cues:

srtspeak build --srt GRAN_TENKU_japan.srt --lang ja --limit 3 --voice-id leo

Portuguese as pt-PT:

srtspeak build --srt GRAN_TENKU_Portugus.srt --lang pt --language-code pt-PT --voice-id leo

Mix onto an existing bed:

srtspeak build --srt GRAN_TENKU_japan.srt --lang ja --base-wav bed.wav --voice-id leo

Disable Japanese yomi:

srtspeak build --srt GRAN_TENKU_japan.srt --lang ja --no-ja-yomi --voice-id leo

Force fresh TTS (ignore caches):

srtspeak build --srt GRAN_TENKU_japan.srt --lang ja --no-cache --voice-id leo
Multi-language batch
srtspeak build-all ^
  --map ja=GRAN_TENKU_japan.srt ^
  --map en=GRAN_TENKU_English.srt ^
  --map pt=GRAN_TENKU_Portugus.srt ^
  --voice-id leo ^
  --out out

Per-language voices:

srtspeak build-all ^
  --map ja=GRAN_TENKU_japan.srt ^
  --map en=GRAN_TENKU_English.srt ^
  --voice-id ja=leo --voice-id en=orion
Translate (SRT→SRT)

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 srtspeak

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

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?

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229