Skip to main content

podcast-transcript-convert

PyPI Lint and Test Ruff Code style: black Checked with pytype twitter

Convert podcast transcripts from HTML, SRT, WebVtt, Podlove etc into PodcastIndex JSON.

Installation

It is recommended to use pipx to install and run the CLI tool. If you wish to use the library, you can install with pip instead.

brew install pipx
pipx install podcast-transcript-convert

Usage

Run the conversion app on your transcripts directory.

transcript2json transcripts/ converted/

You can then inspect the output JSON files in the converted/ directory.

Library Usage

from podcast_transcript_convert.convert import bulk_convert

bulk_convert("transctipts_dir/", "converted_dir/")

Individual file type converters are in the converters package. You can use them directly if you know the file type.

You can use file_typing.identify_file_type(file) to determine the file type of a transcript file.

Development

Pull requests are very welcome! For major changes, please open an issue first to discuss what you would like to change.

git clone git@github.com:hbmartin/podcast-transcript-convert.git
cd podcast-transcript-convert
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Replace with the actual path to your transcript files
python -m podcast_transcript_convert ~/Downloads/overcast-to-sqlite/archive/transcripts converted/

Code Formatting

This project is linted with ruff and uses Black code formatting.

Authors

Metadata

Release files for podcast-transcript-convert 0.1.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 podcast-transcript-convert 0.1.0
File Size Uploaded
podcast_transcript_convert-0.1.0.tar.gz 14.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for podcast-transcript-convert 0.1.0
File Interpreter ABI Platform
podcast_transcript_convert-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / podcast_transcript_convert-0.1.0.tar.gz

Download URL podcast_transcript_convert-0.1.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
da59751a72ad946d6475d78e05b49282495ce8a4857946e6a49993a5cf846bed
BLAKE2b-256 checksum
How to use checksums
7843f632e439af46bcbc439258629f92c5e8199abfb77de2033b4a88ae1d68cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / podcast_transcript_convert-0.1.0-py3-none-any.whl

Download URL podcast_transcript_convert-0.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
714797d8316d913068caba757ae1ec9b5c4e146bd063e001ab33ab6218dc22e6
BLAKE2b-256 checksum
How to use checksums
df6b6f0edeebe11bed92145c187eb75685e969a11b1b9ececead660cc517b7ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

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