Code Monkey home page Code Monkey logo

audiobookmaker---pdf-to-audio's Introduction

AudioBookMaker - PDF to Audio

Project Overview

The AudioBookMaker is a Python project that converts PDF files to audio. It provides an easy-to-use graphical user interface that allows users to select a PDF file and then convert the contents into spoken text. This project is particularly useful for people who wish to consume written content in audio format.

This tool is beneficial for visually impaired individuals, for those who want to convert their books to audiobooks, or even for those who want to listen to articles, documents, or books while doing other tasks.

The project is modularized into three separate modules for better maintainability and separation of concerns.

Modules

  • text_to_speech_thread.py: This module contains the TextToSpeechThread class, which is a subclass of the Thread class. It converts a given text to speech, and handles the playing and stopping of the audio.

  • audio_player.py: This module contains the AudioPlayer class, which handles the playback of audio files. It provides methods to play and stop the audio.

  • main_app.py: This module creates the graphical user interface and integrates the functions provided by TextToSpeechThread and AudioPlayer. It provides buttons for the user to select a PDF, play the audio, and stop the playback.

Libraries Used

The project uses several Python libraries:

  • tkinter for creating the graphical user interface.
  • threading for handling concurrent operations.
  • tempfile for generating temporary files.
  • PyPDF2 for handling PDF files.
  • gTTS (Google Text-to-Speech) for converting text into speech.
  • pygame for audio playback.

Getting Started

To use the AudioBookMaker, clone the repository, install the required Python libraries listed in the requirements.txt file, and run the main_app.py file.

audiobookmaker---pdf-to-audio's People

Contributors

iprogrammerdmytro avatar

Stargazers

 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.