Giter Site home page Giter Site logo

newsbytes's Introduction


v2.0+ now streaming starting NewsByte 008


About ๐Ÿ”ฐ

NewsBytes is an AI generated podcast that covers global headlines in roughly 5 minutes. Sourcing through ground.news, NewsBytes is able report from neutral sources only. Every 24 hours a new podcast is posted with all its content, from the podcast audio to descriptions being AI generated. Keeping up with that theme, the podcast cover seen on spotify is also AI generated. See the image below for a detailed look at the tech stack used.

Built With ๐Ÿ”ง

Version 1.0+ ๐Ÿ“Œ

Version 2.0+ ๐Ÿ“Œ

Labels ๐Ÿท

Pylint GitHub release (latest by date)

(back to top)

Getting Started ๐Ÿ”Œ

Requirements ๐Ÿ“ฆ

Before starting with the project, you need to have a few requirements installed:

  • Python 3.10
  • Pip

You can install the required Python packages by running the following command:

pip install -r requirements.txt

Setting ENV Variables ๐Ÿ”‘

The project requires API keys for Google Cloud Platform & OpenAI's ChatGPT to access the necessary services. You can set up your API keys by following these steps:

  1. Go to the Google Cloud Console.
  2. Create a new project.
  3. Enable the necessary APIs for your project:
    • Cloud Text-to-Speech API
    • Cloud Storage API
  4. Download the JSON key for your service account.
OPENAI_API_KEY = OpenAI API key
OPENAI_PROMPT = OpenAI prompt to summarize news articles
OPENAI_DESCRIPTION_PROMPT = OpenAI prompt to create episode description
GOOGLE_APPLICATION_CREDENTIALS = Path to GCP credentials json
BUCKET_NAME = GCP bucket name

MODEL_URL = Download link to so-vits-svc model (.pth file) [Only for v1.*]
MODEL_CONFIG = Download link to so-vits-svc model config (.json file) [Only for v1.*]

ELEVENLABS_KEY = ElevenLabs TTS API key [Only for v2.*]
VOICE_ID = Speaker ID for ElevenLabs TTS [Only for v2.*]

(back to top)

SO-VITS-SVC Setup (v1.*) ๐Ÿ”ฉ

Once the API keys are setup, you will need a model and config file corresponding to the voice you want to use for the podcast.

  • Follow this page to train your own voice model
  • Or, download pre-trained models from this page

Place the path to the download links into MODEL_URL and MODEL_CONFIG Example:

MODEL_URL = https://huggingface.co/xgdhdh/so-vits-svc-4.0/resolve/main/Saber/G_30400.pth
MODEL_CONFIG = https://huggingface.co/xgdhdh/so-vits-svc-4.0/raw/main/Saber/config.json

Note: If you are using v2.*, this set up is not required. Only an API key for ElevenLabs is required.

(back to top)

Potential Improvements โš™๏ธ

  • Address volume drop off in ElevenLabs TTS model
  • Include news from subtopics (Finance, Sports etc.)
  • Improve web scrapping model
    • Current version drops certain news articles if news can not be extracted via BoilerPy3

(back to top)

Contributing ๐Ÿ“„

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License ๐Ÿ”’

Distributed under the Apache-2.0 license. See LICENSE for more information.

(back to top)

Contact ๐Ÿ“ž

Gmail Linkedin

(back to top)

newsbytes's People

Contributors

zafirmk 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.