Git Product home page Git Product logo

wikipod's Introduction

The WikiPod

The WikiPod is the easiest way for you to generate podcast episodes out of your favorite Wikipedia pages!

See a few examples here:

  • Black holes โ€“ you won't be able to escape this topic's gravitational pull!
  • Event horizon โ€“ don't expect events in the horizon for this one.
  • Spacetime โ€“ you thought they were separate? Think again...

Just a 3h experiment, you are very welcome to build on top of it

Getting started

Create a .secret file with your OpenAI API key and your Eleven Labs API key:

ELEVEN_LABS_API_KEY=<xi-api-key>
OPENAI_API_KEY=<openai-api-key>

Now run the bash command to begin wikipodding your very favorite Wikipedia pages!

python main.py -p https://en.wikipedia.org/wiki/Python_(programming_language) https://en.wikipedia.org/wiki/Artificial_intelligence

You can edit the following variables:

  • -v or --voice_id: ID of the voice to use for audio generation. Default is UdScy37AbDCrWZuRANDL.
  • -m or --model: The GPT model to use for content cleaning. Default is gpt4.
  • -p or --pages: A list of Wikipedia page URLs to process. This argument is required. Default is a random Wikipedia page.

Output

The script will scrape the specified Wikipedia pages, clean the content, and save it in an HTML file in the public/ directory. It will also generate an audio file in MP3 format in the same directory that is included in the HTML file.


wikipod's People

Contributors

esbenkc avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.