Giter Site home page Giter Site logo

babble2blog's Introduction

Logo of the project

Babble2Blog

Speech to Blog Post Generator

This tool takes a speech input and drives it through OpenAPI's Whisper API to transcribe the speech into text. The text is then fed into OpenAI's GPT-4 model to generate a blog post.

See an example!

This is a blog post generated by this tool:

https://thejunkland.com/blog/speech-to-blogpost.html

Note the original audio file that's also included in the blog post.

Getting started

You can use the tool from command line.

yarn
yarn start speech-input.mp3 blog-post-output.md

This installs the project's dependencies and runs the tool against the given input audio file speech-input.mp3 and outputs the blog post to blog-post-output.md.

Prerequisites

You need an API key for OpenAI's Whisper API and GPT-4 API. You can get these by registering at the OpenAI's website. Note that both Whisper and GPT-4 are paid APIs (although they're super cheap).

Create a file called .env in the root of the project and add the following line:

OPENAI_TOKEN=your-token-here

Alternatively, you can set the OPENAI_TOKEN environment variable.

Using a hosted version

If you don't have access to GPT-4 API, you can use a hosted micro-SaaS version of this tool:

https://magicmemos.com/

Features

This project aims to be a tool that:

  • Makes it easy to generate blog posts when you don't have access to keyboard
  • Demonstrates state-of-the-art AI capabilities (as of 2023)
  • Makes my life easier

About the logo

The logo of this project was created using DALL·E, with the prompt:

Icon for app that creates blog posts from speech, dribble, concept art, iOS

The generated result was then polished by hand with Inkscape.

Contributing

At the moment this is a very crude proof-of-concept. If you still would like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Licensing

The code in this project is licensed under MIT license.

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.