GithubHelp home page GithubHelp logo

chaonan99 / ppt_presenter Goto Github PK

View Code? Open in Web Editor NEW
52.0 3.0 16.0 2.22 MB

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

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

Python 100.00%
pptx tts

ppt_presenter's Introduction

PPT Presenter

PPT Presenter 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/chaonan99/ppt_presenter.git
cd ppt_presenter
  • Install required packages
pip install -r requirements.txt
  • You also need ffmpeg
  • Watch the video example/test.mp4 (created by ppt_presenter)

Alt text

ppt_presenter's People

Contributors

chaonan99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ppt_presenter's Issues

FileNotFoundError: [Errno 2] No such file or directory: 'avconv'

When i run

sudo python ppt_presenter.py --pptx test.pptx --pdf test.pdf -o test.mp4

Am getting following error;

Traceback (most recent call last):
File "ppt_presenter.py", line 71, in
main()
File "ppt_presenter.py", line 67, in main
ppt_presenter(args.pptx, args.pdf, args.output)
File "ppt_presenter.py", line 38, in ppt_presenter
ffmpeg_call(image_path, audio_path, temp_path, i)
File "ppt_presenter.py", line 51, in ffmpeg_call
'-b:a', '192k', '-pix_fmt', 'yuv420p', '-shortest', out_path_mp4])
File "/usr/local/lib/python3.5/subprocess.py", line 560, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/lib/python3.5/subprocess.py", line 950, in init
restore_signals, start_new_session)
File "/usr/local/lib/python3.5/subprocess.py", line 1544, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'avconv'

Module installation error

Am getting below errro;

File "ppt_presenter.py", line 10, in
from pdf2image import convert_from_path
ImportError: No module named pdf2image

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.