GithubHelp home page GithubHelp logo

imclab / esv-text-audio-aligner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from westonruter/esv-text-audio-aligner

0.0 1.0 0.0 268 KB

ESV Text/Audio Aligner to programmatically obtain the timings for each word in the corresponding audio

esv-text-audio-aligner's Introduction

ESV Text/Audio Aligner

Pulls down the ESV text and audio from the ESV API, then aligns the text and audio chapter-by-chapter by means of CMU Sphinx and generates {book}.{chapter}.timings.json timing files in the data/ directory (see output for John 3). The audio and text for each chapter is also saved in this directory. Previously-aligned chapters are skipped unless --forced. There is an ongoing discussion on the CMU Sphinx forums on the quality of the alignment data it provides.


Author: Weston Ruter (@westonruter)
GitHub: https://github.com/westonruter/esv-text-audio-aligner
Dependencies: Python 2.7, java, ant, sox, svn

The ESV Text and MP3 data downloaded by this script is subject to copyright:

The Holy Bible, English Standard Version copyright (c)2001 by Crossway Bibles, a publishing ministry of Good News Publishers. All rights reserved.

ESV API usage terms (see full conditions):

You can access the ESV text using the key "IP" (without the quotes). This key limits you to 5,000 queries per day from a single IP address. You are bound by the below conditions of use, including the non-commercial aspects.

Background

This project was birthed out of a desire to realize the read-along app, where the currently-spoken word in the audio is higlighted in the text on the screen. I made an HTML5 Audio Read-Along prototype (includes writeup) featuring a passage from Luke 2 of the ESV, but the actual audio timing data for the Luke 2 sample I had to obtain manually (read: painstakingly). This project aims to generate the audio word timings automatically so that the entire Bible can be used in a read-along app.

Usage

$ python align.py [-f|--force] [osisBook [[chapter], [chapter]...]]...

Examples

Align Genesis 1:

$ python align.py Gen 1

Align John 3, overridding any existing timings:

$ python align.py -f John 3

Align Genesis 1-3, Psalm 1, and all of Colossians:

$ python align.py Gen 1 2 3 Ps 1 Col

License

Dual licensed under the MIT or GPL Version 2 licenses.
MIT License: http://creativecommons.org/licenses/MIT/
GPL 2.0 license: http://creativecommons.org/licenses/GPL/2.0/

esv-text-audio-aligner's People

Contributors

westonruter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.