You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pdf2speech

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf2speech

Don't miss learning opportunities. Life is too short.

0.0.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

pdf2speech

Don't miss learning opportunities. Life is too short.

pdf2speech converts PDF to mp3 audio with text-to-speech engine. It allows you to read PDF books while you are walking.

Status

Currently I am testing to convert O'reilly books to audio. example.js successfully converted "Database Reliability Engineering" book. I guess formats of the animal books of O'reilly are generally same so it works for the other books as well.

Requirements

pdf2speech currently supports AWS Polly only as text-to-speech engine. Be sure to set up AWS credentials correctly.

pdf2speech uses Node.js and ES2016 syntax. Install Node.js with proper version.

How to run examples

clone pdf2speech.

git clone git@github.com:TanUkkii007/pdf2speech.git
  • install dependencies
npm install
  • Run example with a PDF file path argument.
node example.js path/to/pdf

This command generates several mp3 files. To concatenate these files, run cat command.

cat out-*.mp3 > combined.mp3

ToDo

  • I think pdf2speech cannot be a general CLI tool. There are tons of different format of PDFs so programming is needed. Instead of provide general CLI, examples for specific books can be helpful.
  • publish pdf-to-audio conversion process streams as library
  • API refinement
  • CMAP support

FAQs

Package last updated on 30 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts