pptx-tools


Namepptx-tools JSON
Version 0.1.10 PyPI version JSON
download
home_pagehttps://github.com/iory/pptx-tools
SummaryA power point tools
upload_time2023-10-02 07:25:54
maintainer
docs_urlNone
authoriory
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements coloredlogs extendedos google-cloud-speech google-cloud-texttospeech langdetect lxml pathlib pydub python-pptx scikit-video termcolor tqdm
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

### Slide Video Formatter Command

The `slide-video-formatter` command is a utility program allowing users to format videos within PowerPoint presentations by specifying the `vcodec` and `crf`.

```
slide-video-formatter <YOUR-AWESOME-SLIDE> --out /tmp/tmp.pptx --vcodec libx264 --crf 28
```

## 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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/iory/pptx-tools",
    "name": "pptx-tools",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "iory",
    "author_email": "ab.ioryz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f2/fa/6d2d5f95448fbdb49e5fc61d3457a939140da0bf8a1a037f5eeff26de091/pptx-tools-0.1.10.tar.gz",
    "platform": null,
    "description": "# pptx-tools\n\n[![Build Status](https://github.com/iory/pptx-tools/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/iory/pptx-tools/actions)\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n[![](https://badge.fury.io/py/pptx-tools.svg)](https://pypi.org/project/pptx-tools/)\n\n## Install\n\nSuport only python3.\n\n```\npip install pptx-tools\n```\n\n## Quick Example\n\nCreate Google Application Credentials files and set\n\n```\nexport GOOGLE_APPLICATION_CREDENTIALS=/PATH/TO/JSON\n```\n\nAfter that,\n\n```\nslide-add-voice <PATH-TO-YOUR-AWESOME-SLIDE>\n```\n\nYou can change the synthesized voice by specifying the `--voice-name` as shown below.\n\n```\nslide-add-voice pptx_tools/data/hello.pptx --voice-name en-US-Wavenet-C\n```\n\nIn 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\n\n### Slide Video Formatter Command\n\nThe `slide-video-formatter` command is a utility program allowing users to format videos within PowerPoint presentations by specifying the `vcodec` and `crf`.\n\n```\nslide-video-formatter <YOUR-AWESOME-SLIDE> --out /tmp/tmp.pptx --vcodec libx264 --crf 28\n```\n\n## Q & A\n\nQ: What happens to the slide transition time when both a video file and a synthesized voice are present on the slide?\n\nA: 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.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A power point tools",
    "version": "0.1.10",
    "project_urls": {
        "Homepage": "https://github.com/iory/pptx-tools"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7d54ecffee8a4cb1db092228e7af7a06f6e2545e07c90848789326a7398b2088",
                "md5": "0b7244ec0c9328c9809f61a7abdb68df",
                "sha256": "5e43505b676f41901fd6aaa4dd01c36cd00f17dd4fd29a0c54aacf384849c0a3"
            },
            "downloads": -1,
            "filename": "pptx_tools-0.1.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0b7244ec0c9328c9809f61a7abdb68df",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 53909,
            "upload_time": "2023-10-02T07:25:52",
            "upload_time_iso_8601": "2023-10-02T07:25:52.775502Z",
            "url": "https://files.pythonhosted.org/packages/7d/54/ecffee8a4cb1db092228e7af7a06f6e2545e07c90848789326a7398b2088/pptx_tools-0.1.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f2fa6d2d5f95448fbdb49e5fc61d3457a939140da0bf8a1a037f5eeff26de091",
                "md5": "dc5be0c74e117cc084b1e4a05a607348",
                "sha256": "5a0036c95e9c169f68510e2eb066fa8e99074fb0a988834357bdb91e64d01ee0"
            },
            "downloads": -1,
            "filename": "pptx-tools-0.1.10.tar.gz",
            "has_sig": false,
            "md5_digest": "dc5be0c74e117cc084b1e4a05a607348",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 51012,
            "upload_time": "2023-10-02T07:25:54",
            "upload_time_iso_8601": "2023-10-02T07:25:54.773500Z",
            "url": "https://files.pythonhosted.org/packages/f2/fa/6d2d5f95448fbdb49e5fc61d3457a939140da0bf8a1a037f5eeff26de091/pptx-tools-0.1.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-02 07:25:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "iory",
    "github_project": "pptx-tools",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "coloredlogs",
            "specs": []
        },
        {
            "name": "extendedos",
            "specs": [
                [
                    ">=",
                    "0.1.5"
                ]
            ]
        },
        {
            "name": "google-cloud-speech",
            "specs": []
        },
        {
            "name": "google-cloud-texttospeech",
            "specs": []
        },
        {
            "name": "langdetect",
            "specs": []
        },
        {
            "name": "lxml",
            "specs": []
        },
        {
            "name": "pathlib",
            "specs": []
        },
        {
            "name": "pydub",
            "specs": []
        },
        {
            "name": "python-pptx",
            "specs": []
        },
        {
            "name": "scikit-video",
            "specs": []
        },
        {
            "name": "termcolor",
            "specs": []
        },
        {
            "name": "tqdm",
            "specs": []
        }
    ],
    "lcname": "pptx-tools"
}
        
Elapsed time: 0.12201s