by Shyamal Suhana Chandra, [email protected]
Purpose: This bash script for MacOS is used to convert the most latest created PDF in the same directory into a single text movie video with embedded speech synthesis.
Quick installation: brew install --build-from-source pdftotextmovie
(Only one line!)
To run: pdftotextmovie
in the directory of the latest pdf.
To run from source:
gh repo clone shyamalschandra/pdftotextmovie
cd pdftotextmovie
- Follow the prequisities below.
Preliminary Prerequisites:
- First, install homebrew and pip on MacOS device.
- Please do a
brew install pkg-config poppler
. - Please do a
sudo pip install --user pdftotext
. - Please do a
brew install ffmpeg
. - Please do a
sudo pip install --user numpy
. - Run the following commands in this comment.
- Please do a
brew install imagemagick
. - Download the model for
Zoe (Premium)
from the voices underAccessibility -> Spoken Content -> System Voice -> under English (US)
.
Also, do a chmod +x pdf2textmovie.sh
when you get into the 'pdftotextmovie' folder before running.
Example argument list with the command inside the directory of the PDF that needs to be converted into a text movie with embedded speech synthesis:
./pdf2textmovie.sh