twat-speech
twat-speech is the speech-domain package for the twat ecosystem. It owns transcription orchestration, subtitle repair, TTS calls, and deterministic dubbing plans while leaving provider clients in twat_genai and audio-file transforms in twat_audio.
Python API
from twat_speech import repair_subtitles, dub_plan, transcribe, synthesize
fixed = repair_subtitles(open("captions.srt").read())
plan = dub_plan("movie.mp4", fixed, language="de")
transcript = transcribe("speech.wav")
speech_file = synthesize("Hello", "hello.wav")
Implemented helpers:
parse_srt,format_srt,repair_srt,repair_subtitles.subtitle_transcriptfor plain transcript extraction.transcribeandsynthesizeas thintwat_genaiprovider adapters.dub_plan/create_dub_planfor deterministic dubbing orchestration.- optional
transcribe(..., preprocess=True)delegates resampling totwat_audiobefore provider transcription.
CLI
python -m twat_speech --help
python -m twat_speech repair-srt captions.srt captions.fixed.srt
python -m twat_speech dub movie.mp4 captions.fixed.srt --language de
python -m twat_speech transcribe speech.wav
python -m twat_speech synthesize "Hello" hello.wav
Boundaries
twat_genaiowns speech providers for STT/TTS and future dubbing engines.twat_audioowns audio-file transforms such as resampling, trimming, normalization, and audio extraction.twat_speechowns speech-specific orchestration, subtitles, transcripts, and dubbing plans.
Reference scripts
Reusable subtitle repair ideas from srtmultifix.py, extraction workflows from mkv2srt.py, and planning ideas from vidpredub.py/viddub-* are represented here as package APIs. Provider-specific or workstation-specific batch dubbing scripts remain in reference/bin-img-vid/ because they combine local credentials, shell glue, and one-off media workflows.
Metadata
Release files for twat-speech 2.7.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twat_speech-2.7.9.tar.gz | 16.4 kB | Without provenance | Details for twat_speech-2.7.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twat_speech-2.7.9-py3-none-any.whl | Python 3 | none | any | Details for twat_speech-2.7.9-py3-none-any.whl |
Total release size: 25.4 kB
Release files / twat_speech-2.7.9.tar.gz
| Download URL | twat_speech-2.7.9.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c3fb431fd483834873ebd1023c486743a1eefbdf7d0d225ca5bc62012d1b652
|
|
BLAKE2b-256 checksum How to use checksums |
a7ab084c1efebb22daa737009fcab012e642e2e5eb69c33868baa07aecab9930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / twat_speech-2.7.9-py3-none-any.whl
| Download URL | twat_speech-2.7.9-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7541ef3a060e4b45a6d53ac4a504946a6c15d86d5f077ed7e03f3c139837d89
|
|
BLAKE2b-256 checksum How to use checksums |
4843e2d19667e5e266b8a2fff8af3e60ee06f7427db7362e50e2e003217e1147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for twat-speech 2.7.9
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.