Skip to main content

Download and transcribe Dharma Seed retreat talks.

Project description

Dhamma

Dharma Seed is an indespensible resource for those on the Buddhist path. However, sometimes it can be challenging to commit to sitting and listening to many hours of talks when reading the content would be preferred. The dhamma ("dharma" in Pāḷi) tool in this project enables you to do exactly that.

The tool works by scraping a retreat page (dharmaseed.org/retreats/3972 for example), downloading the mp3 files hosted there, and then using the OpenAI Whisper and Chat APIs to transcribe, cleanup, and prepare markdown documents for easy reading anywhere. Facilities for converting these markdown documents into pdfs or epub documents are also included with this tool.

Dependencies

  • xelatex

MacOS:

$ brew install basictex
$ sudo tlmgr update --self
$ sudo tlmgr install texliveonfly
  • pandoc

MacOS:

$ brew install pandoc

Installation

pip install dhamma

Example Usage

$ dhamma download retreat 3972 -o ./Soulmaking
$ dhamma transcribe ./Soulmaking
$ dhamma make pdf ./Soulmaking

Project details


Download files

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

Source Distribution

dhamma-0.4.tar.gz (12.2 kB view hashes)

Uploaded Source

Built Distribution

dhamma-0.4-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

Supported by

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