GithubHelp home page GithubHelp logo

mathieuatspiria / pptx2mp4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chaonan99/ppt_presenter

0.0 0.0 0.0 2.23 MB

Convert pptx to video with audio track, using text to speech synthesis

Home Page: https://www.youtube.com/watch?v=kMCZuAwFOVI

Python 100.00%

pptx2mp4's Introduction

pptx2mp4

pptx2mp4 converts a .pptx file to a video, and read out speaker's notes along slides using text to speech technique.

Usage

  • To get started, clone this repo
git clone https://github.com/mvillegas13/pptx2mp4
cd pptx2mp4
  • Install python 3.10 (other versions will not be able to install the required TTS package at the time of writing). If you are on macOS, it is highly recommended to use homebrew to install all required software in this documentation (python, ffmpeg and libreoffice). To install python with homebrew, run the following command:
brew install [email protected]
  • If you are on macOS, with Apple ARM cpu you need to install mecab too:
brew install mecab
  • Install required packages
pip install --use-pep517 -r requirements.txt

on macOs use this command:

pip3.10 install --use-pep517 -r requirements.txt
  • You also need:

    If you are un macos just run:

    brew install ffmpeg libreoffice
    
  • Run the script using the following command:

python pptx2mp4.py -i <input_pptx_file> -l <language_fr_or_en> -o <output_mp4_file>

on macOs use this command:

python3.10 pptx2mp4.py -i <input_pptx_file> -l <language_fr_or_en> -o <output_mp4_file>

To force the use of gtts (google text to speech) use the option "-t gtts"

pptx2mp4's People

Contributors

chaonan99 avatar mathieuatspiria avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.