wahidpanda / PDF_to_Translator

PDF Text-to-Speech and Translation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

**PDF Text-to-Speech and Translation **

Overview

The PDF Text-to-Speech and Translation Tool is a versatile Python application that enables users to convert text content from PDF files into speech. It also provides an option to translate the text into different languages, making it a powerful tool for both text-to-speech conversion and multilingual support.

Features

PDF Text-to-Speech Conversion: Quickly convert text content from PDF documents into spoken words. Listen to documents, books, or reports without the need to read them.

Language Translation: Translate the text into various languages, allowing users to listen to content in their preferred language.

Adjustable Speaking Rate: Customize the speaking rate to control the speed of speech, making it suitable for different listening preferences.

User-Friendly Interface: A straightforward and easy-to-use graphical interface that prompts users to select PDF files, choose the page to read, and select the target language for translation.

Support for Multiple Languages: Support for a wide range of languages, including English, Hindi, French, Bengali, and more, using the gTTS library for text-to-speech and Google Translate for translation.

How to Use

  1. Launch the application and select a PDF file from your device.
  2. Choose the page number you want to read.
  3. Optionally, select a target language for translation (e.g., 'hi' for Hindi, 'fr' for French).
  4. Click 'Start' to initiate the text-to-speech conversion and/or translation.
  5. Adjust the speaking rate according to your preference.
  6. Enjoy listening to the content or translation.
  7. Press Enter to stop the speech at any time.

Dependencies

  1. pyttsx3: Text-to-speech library for speech synthesis.
  2. PyPDF2: Library for extracting text content from PDF files.
  3. gTTS (Google Text-to-Speech): Library for text-to-speech conversion.
  4. googletrans: Library for language translation.
  5. Contributions

**Contributions and improvements to the project are welcome. If you have ideas for enhancements or bug fixes, feel free to create pull requests or issues. **

About

PDF Text-to-Speech and Translation


Languages

Language:Python 100.0%