Metadata-Version: 2.4
Name: ppt-to-video
Version: 0.2.0
Summary: Add your description here
Author-email: Aaron Graham <apj_graham@yahoo.co.uk>
License: MIT License
        
        Copyright (c) 2025 Aaron Graham
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
Keywords: powerpoint,pptx,video,gtts,moviepy,automation,text-to-speech
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: deep-translator>=1.11.4
Requires-Dist: gtts>=2.5.4
Requires-Dist: moviepy>=2.2.1
Requires-Dist: python-pptx>=1.0.2
Requires-Dist: sphinx>=8.1.3
Requires-Dist: sphinx-autodoc-typehints>=3.0.1
Dynamic: license-file

# PPTX to Video

Convert PowerPoint presentations (`.pptx`) into narrated videos with automatic translation and speech synthesis.

## Features

- Converts each slide of a PPTX file into a video segment
- Extracts and translates slide notes into multiple languages
- Synthesizes speech from translated notes using Google Text-to-Speech
- Assembles narrated video for each language
- Supports Linux, macOS, and Windows (with appropriate dependencies)
- Command-line interface

## Requirements

- Python 3.8+
- [moviepy](https://github.com/Zulko/moviepy)
- [gtts](https://pypi.org/project/gTTS/)
- [deep-translator](https://pypi.org/project/deep-translator/)
- [python-pptx](https://python-pptx.readthedocs.io/)
- LibreOffice (for Linux/macOS slide rendering)
- PowerPoint (for Windows slide rendering)

Install dependencies:
```bash
pip install .
```

## Usage

```bash
python pptx-to-video.py path/to/presentation.pptx --languages English Spanish French --output_dir output_videos
```

- `pptx_path`: Path to the input PPTX file (required)
- `--languages`: List of languages for translation (default: `en`)
- `--output_dir`: Directory to save output videos (default: `output_videos`)

## Example

```bash
python main.py slides.pptx --languages English French --output_dir my_videos
```

## Project Structure

```
ppt-to-video/
├── pptx-to-video.py
├── src/
│   ├── cli.py
│   ├── logger.py
│   ├── language_codes.py
│   ├── powerpoint.py
│   ├── powerpoint_engine.py
│   └── video_constructer.py
├── tests/
│   └── test_language_codes.py
|   └── test_powerpoint_engine.py
|   └── test_powerpoint.py
|   └── test_video_constructor.py
├── pyproject.toml
└── README.md
```

## Development

- Run tests with [pytest](https://docs.pytest.org/):
  ```bash
  pytest
  ```
- Lint and type-check with [ruff](https://github.com/astral-sh/ruff) and [mypy](http://mypy-lang.org/).

## License

MIT License

---

**Note:**
- On Linux/macOS, LibreOffice must be installed and available in your PATH for slide-to-image conversion.
- On Windows, Microsoft PowerPoint is required for slide rendering.
