GithubHelp home page GithubHelp logo

timf34 / article2audio Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 9.36 MB

Convert articles to audio using OpenAI's Text to Speech API.

Home Page: https://article2audio.com/

License: GNU Affero General Public License v3.0

Python 67.16% Dockerfile 2.36% JavaScript 15.40% CSS 1.35% HTML 7.58% Shell 6.14%
newspaper openai python scraping text-to-speech fastapi

article2audio's Introduction

Article2Audio

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.

Sample Audio Output

The.Most.Precious.Resource.is.Agency.mp4

Setup Instructions

Local Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/Article2Audio.git
    cd Article2Audio
  2. 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
    
  3. 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!

article2audio's People

Contributors

timf34 avatar

Stargazers

 avatar Mustafa COSKUNCELEBI avatar Domas Bitvinskas avatar

Watchers

Kostas Georgiou avatar  avatar

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.