Convert articles to audio using OpenAI's Text to Speech API.
Article2Audio is a straightforward web app designed for personal use, allowing users to convert online articles to lovely audio files. It extracts the content of an article, formats it nicely in preparation of audio conversion, then uses OpenAI's Text to Speech API to produce the audio file.
The.Most.Precious.Resource.is.Agency.mp4
-
Clone the repository:
git clone https://github.com/yourusername/Article2Audio.git cd Article2Audio
-
Create a
.env
file with necessary environment variables in the/server
dir:cd server touch .env
Add the following environment variables to the
.env
file:OPENAI_KEY=your-openai-key LOGIN_PASSWORD=your-password SECRET_KEY=your-secret-key
-
Build and run Docker
docker-compose up --build
Enjoy your audio versions of any article you want at http://localhost:3000! ๐
Note that it can take up to a few minutes to generate the audio file depending on the length of the article. Will look into optimizing this/ running it concurrently without OpenAI rate limiting issues in the future. UI and iterface will be updated soon too!