**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
- Launch the application and select a PDF file from your device.
- Choose the page number you want to read.
- Optionally, select a target language for translation (e.g., 'hi' for Hindi, 'fr' for French).
- Click 'Start' to initiate the text-to-speech conversion and/or translation.
- Adjust the speaking rate according to your preference.
- Enjoy listening to the content or translation.
- Press Enter to stop the speech at any time.
Dependencies
- pyttsx3: Text-to-speech library for speech synthesis.
- PyPDF2: Library for extracting text content from PDF files.
- gTTS (Google Text-to-Speech): Library for text-to-speech conversion.
- googletrans: Library for language translation.
- 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. **