DEV Community

Cover image for Convert your Pdf in cool AudioBook with 3 lines of python code
Deepak Raj
Deepak Raj

Posted on • Updated on • Originally published at codeperfectplus.herokuapp.com

Convert your Pdf in cool AudioBook with 3 lines of python code

AudioBook πŸ”Š

download

The AudioBook is a python module to Listen to your favourite pdf πŸ“–. It also can be used offline.

Documentation

Check the Audiobook Documentation here

Installation

Install it from pypi

pip install audiobook
Enter fullscreen mode Exit fullscreen mode
from audiobook import AudioBook
ab = AudioBook("file_path")
ab.text_to_speech()
Enter fullscreen mode Exit fullscreen mode

Linux installation requirements

  • If you are on a Linux system and if the voice output is not working, then: Install espeak , ffmpeg and libespeak1 as shown below:
sudo apt update && sudo apt install espeak ffmpeg libespeak1
Enter fullscreen mode Exit fullscreen mode

Roadmap

  • speech speed control
  • Support more extensions
  • save the audiobook for future

Links

GitHub β€’ Pypi β€’ Documentation

Contributions are welcome. Share your feedback in comments.

Top comments (0)