GoogleSlidesToVideo is a Python project that converts Google Slides speaker notes into video presentations. It uses various services such as Google Slides API, Google Translate API, and Text-to-Speech (TTS) to generate a video presentation from your Google Slides.
-
Clone the repository:
git clone https://github.com/yourusername/GoogleSlidesToVideo.git
-
Navigate to the project directory:
cd GoogleSlidesToVideo
-
Install the required Python packages:
pip install -r requirements.txt
-
Install the project:
python setup.py install
The main entry point of the application is the main.py
script. You can run it as follows:
python src/main.py
The main.py
script uses the fire
library to expose the PresentationProcessor
class as a command-line interface. You can use it to process a Google Slides presentation into a video.
For example, to process a presentation, you can use the process_presentation
method:
python main.py run --project_id=YOUR_PROJECT_ID process_presentation --presentation_id=YOUR_PRESENTATION_ID --target_language=YOUR_TARGET_LANGUAGE
Replace YOUR_PRESENTATION_ID
with the ID of your Google Slides presentation.
Please note that you need to set up your Google API credentials and other environment variables as per your requirements. Refer to the app.py
script for more details.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the MIT license.