Metadata-Version: 2.1
Name: pptx-tools
Version: 0.1.7
Summary: A power point tools
Home-page: https://github.com/iory/pptx-tools
Author: iory
Author-email: ab.ioryz@gmail.com
License: MIT
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: coloredlogs
Requires-Dist: extendedos (>=0.1.5)
Requires-Dist: google-cloud-speech
Requires-Dist: google-cloud-texttospeech
Requires-Dist: langdetect
Requires-Dist: lxml
Requires-Dist: pydub
Requires-Dist: python-pptx
Requires-Dist: scikit-video
Requires-Dist: termcolor
Requires-Dist: tqdm
Requires-Dist: pathlib ; python_version < "3.0"
Provides-Extra: all
Requires-Dist: coloredlogs ; extra == 'all'
Requires-Dist: extendedos (>=0.1.5) ; extra == 'all'
Requires-Dist: google-cloud-speech ; extra == 'all'
Requires-Dist: google-cloud-texttospeech ; extra == 'all'
Requires-Dist: langdetect ; extra == 'all'
Requires-Dist: lxml ; extra == 'all'
Requires-Dist: pydub ; extra == 'all'
Requires-Dist: python-pptx ; extra == 'all'
Requires-Dist: scikit-video ; extra == 'all'
Requires-Dist: termcolor ; extra == 'all'
Requires-Dist: tqdm ; extra == 'all'
Requires-Dist: azure-cognitiveservices-speech ; extra == 'all'
Requires-Dist: pathlib ; (python_version < "3.0") and extra == 'all'
Provides-Extra: azure
Requires-Dist: azure-cognitiveservices-speech ; extra == 'azure'

# pptx-tools

[![Build Status](https://github.com/iory/pptx-tools/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/iory/pptx-tools/actions)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)
[![](https://badge.fury.io/py/pptx-tools.svg)](https://pypi.org/project/pptx-tools/)

## Install

Suport only python3.

```
pip install pptx-tools
```

## Quick Example

Create Google Application Credentials files and set

```
export GOOGLE_APPLICATION_CREDENTIALS=/PATH/TO/JSON
```

After that,

```
slide-add-voice <PATH-TO-YOUR-AWESOME-SLIDE>
```

You can change the synthesized voice by specifying the `--voice-name` as shown below.

```
slide-add-voice pptx_tools/data/hello.pptx --voice-name en-US-Wavenet-C
```

In addition, you can listen to the voice samples available for use with Google Text-to-Speech at the following URL: https://cloud.google.com/text-to-speech/docs/voices

## Q & A

Q: What happens to the slide transition time when both a video file and a synthesized voice are present on the slide?

A: The transition time for the slide will be based on whichever is longer between the duration of the synthesized voice and the duration of the video.
