Skip to content

Converts a PDF to audio using PyMuPDF and Microsoft edge TTS. This was created because I was tired of having no time to sit and read research papers, so now I can listen to them in the background.

Notifications You must be signed in to change notification settings

Travis-ML/doc2audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doc2Audio

Convert PDFs and text files to audio using Microsoft Edge TTS.

Requirements

  • Python 3.12+
  • ffmpeg (brew install ffmpeg)

Installation

pip install -r requirements.txt

Usage

# Basic
python cli.py convert input.pdf output.mp3

# Different voice
python cli.py convert input.pdf output.mp3 --voice en-US-GuyNeural

# List voices
python cli.py voices

Popular Voices

Voice Gender Accent
en-US-JennyNeural Female American
en-US-GuyNeural Male American
en-GB-SoniaNeural Female British
en-GB-RyanNeural Male British

About

Converts a PDF to audio using PyMuPDF and Microsoft edge TTS. This was created because I was tired of having no time to sit and read research papers, so now I can listen to them in the background.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages