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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

podcast_transcript_convert-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

podcast_transcript_convert-0.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file podcast_transcript_convert-0.1.1.tar.gz.

File metadata

File hashes

Hashes for podcast_transcript_convert-0.1.1.tar.gz
Algorithm Hash digest
SHA256 688c136775ea3c7ff8e9f0f44d8f98414401a6d20b130c3c3581ae7a6800721c
MD5 4d8bf1724456218fe25e6940e1c06ce4
BLAKE2b-256 945633d2768ac895f2fcbacc86322f9dcfa755b20bac343e91179c3ccb00018c

See more details on using hashes here.

File details

Details for the file podcast_transcript_convert-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for podcast_transcript_convert-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 544c736f41257424a5aa919e4016d4c239b2bd350d78ce4451cc8a1e1ce7b2f3
MD5 155d1d6a090669a984dacbc8cc2259f7
BLAKE2b-256 a8772483f8b9b5f439aa951a979275c28d63dbaaf52e3f9967a9e0cea9cd141f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page