https://github.com/wahidpanda/pdf_to_translator
PDF Text-to-Speech and Translation
https://github.com/wahidpanda/pdf_to_translator
artificial-intelligence gpt4 machine-learning python pythonprojects speach-to-text text-to-speech
Last synced: 7 months ago
JSON representation
PDF Text-to-Speech and Translation
- Host: GitHub
- URL: https://github.com/wahidpanda/pdf_to_translator
- Owner: wahidpanda
- Created: 2023-09-19T11:31:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T11:35:37.000Z (about 2 years ago)
- Last Synced: 2025-01-21T20:48:58.959Z (9 months ago)
- Topics: artificial-intelligence, gpt4, machine-learning, python, pythonprojects, speach-to-text, text-to-speech
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
**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.
**