Leer is a command-line tool that helps you reading output using OpenAI TTS.
Follow these steps to install and set up Leer:
- Make the script executable:
chmod +x leer.py
- Create a symbolic link to make it accessible from anywhere:
sudo ln -s $(pwd)/leer.py /usr/local/bin/leer
- Add
/usr/local/bin
to your PATH if it's not already included:
export PATH=$PATH:/usr/local/bin
- Source your shell configuration to apply the changes:
source ~/.zshrc
- Set your OpenAI API key:
export OPENAI_API_KEY=your_openai_api_key_here
To use Leer, simply run:
echo "text to read" | leer
Make sure to replace your_openai_api_key_here
with your actual OpenAI API key. You can add this line to your ~/.zshrc
or ~/.bashrc
to set the API key permanently:
export OPENAI_API_KEY=sk-your_openai_api_key_here
welcomed
- OpenAI for providing the API.