Repository navigation
Add Wordproject audio Bible downloader and metadata - #136
Merged
Merged
Conversation
tools/fetch-wordproject-audio.ts downloads the Wordproject audio Bibles one
zip per book and unzips each chapter into
api/{translation}/{bookId}/{chapter}/audio/wordproject.mp3.
tools/wordproject-audio.ts maps each of the 55 audio Bibles to the Free Use
Bible API translations it matches, rated exact, close, unverified, poor or
none from comparing Wordproject's John 1 and Genesis 1 text with each
translation in the same language.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019LsURxq36pDnj4CC4x2Bix
Docs previewDeployed cde97a7 to Cloudflare Workers. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds tooling to download and process audio Bibles from Wordproject (https://www.wordproject.org/bibles/audio/index.htm) and integrate them into the Free Use Bible API's audio file structure.
Key Changes
wordproject-audio.ts: New module defining metadata for 101 Wordproject audio Bible sets
WordprojectAudioSetinterface with audio Bible configuration (language, narrated text, zip locations, matching translations)WordprojectMatchtype to categorize how well each audio matches available API translations (exact, close, unverified, poor, none)WORDPROJECT_AUDIO_SETSarray with complete metadata for all available audio BiblesgetBookNumbers(),getZipUrls(), andgetChapterFromEntryName()for working with the audio filesfetch-wordproject-audio.ts: New CLI tool to download and extract audio Bibles
{output}/api/{translation}/{bookId}/{chapter}/audio/{reader}.mp3--map--concurrency) with a worker pool pattern--listoption to display all available audio Bibles and their metadatapackage.json: Added
fetch:wordproject:audionpm scriptNotable Implementation Details
@zip.js/zip.jsfor cross-platform zip extraction without native dependencies