by Shyamal Suhana Chandra, [email protected]
Purpose: This bash script for MacOS is used to convert a selectable screenshot of the macOS desktop into speech synthesis inside a command line prompt with batch processed speaking using mplayer.
Prequisites:
- Install pip.
- Please install Homebrew with the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
. - Please do a
brew install tesseract
. - Please do a
brew install mplayer
. - Download the screenshot2speech:
git clone https://github.com/shyamalschandra/screenshot2speech
- Go to System Preferences -> Security & Privacy -> Privacy -> Screen Recording -> Add the Terminal with the checkbox on.
Also, do a chmod +x screenshot2speech.sh
before running.
Example command:
./screenshot2speech.sh
Note: All the files will be placed in the Downloads
directory. Please allow the Terminal to access the Downloads folder when asked by MacOS.