Code Monkey home page Code Monkey logo

milestones-wordpress-audiobook's Introduction

Audiobook for Milestones: The Story of WordPress

This repo contains a script for generating an audiobook for Milestones: The Story of WordPress.

The script will automatically download the latest EPUB file from the WordPress book repo, and convert it to audio files using the text-to-speech (TTS) engine on OSX.

The duration of the generated TTS audio will be about 4 hours, depending on the speech rate you choose. Each chapter gets a separate audio file.

Generating Audio

./generate-audiobook.php

You may pass the --voice and --rate options accepted by the OS X say command, for example:

./generate-audiobook.php --voice Alex --rate 275

The script depends on the say command in OS X. Audio files will be written to an output subdirectory.

To convert the AIFF audio files from the say command into MP3 files, sox is required (and must be installed with MP3 support). Without sox, only the AIFF files will be created.

To install sox using brew:

brew install sox --with-lame

If you already have sox installed but need to add MP3 support:

brew reinstall sox --with-lame

Files must be converted to MP3 before being used in podcasts.

Generated audio may be used according to Apple's terms of use (likely personal use only).

The output of this script can be used to create a podcast. Upload the contents of the output directory upon completion, and then add the URL to the contained podcast.php file into your podcasting app. Again, this depends on MP3 conversion via sox.

Credits

Author: Weston Ruter (@westonruter), XWP.

Work derived from the Listenability project.

License: GPLv2+

milestones-wordpress-audiobook's People

Contributors

westonruter avatar

Watchers

 avatar  avatar  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.