Giter VIP home page Giter VIP logo

chat-gpt-powered-voice-notes's Introduction

Voice Interface with GPT-3 and Google Speech-to-Text

This project is a voice interface built with TypeScript that listens for voice input, transcribes it using Google Speech-to-Text, refines the text using OpenAI GPT-3, and saves or discards the voice note based on the user's command.

Prerequisites

Setup

  1. Clone the repository to your local machine.
  2. Navigate to the project directory and run npm install to install the necessary dependencies:
npm install
  1. Create a .env file in the project's root directory with the following content:
OPENAI_API_KEY=your_openai_api_key
GOOGLE_APPLICATION_CREDENTIALS=path_to_your_google_credentials_json_file

Replace your_openai_api_key with your actual OpenAI API key and path_to_your_google_credentials_json_file with the path to your Google Cloud credentials JSON file. 4. Run the script using the following command:

npx ts-node src/index.ts

The script will listen for voice input, transcribe it, refine it using GPT-3, and save or discard the voice note based on the user's command. It will display the messages in the console and read them out loud until the command "save" or "discard" is spoken.

Usage

Once the script is running, start speaking. When there is a sustained silence, the script will consider the voice note to be complete. It will then display the transcribed and refined text in the console.

To save the voice note, say "save". The voice note will be saved in a voice-notes directory with a file name consisting of the current date and the topic it refers to.

To discard the voice note, say "discard". The current voice note will be dropped, and the script will listen for new voice notes.

chat-gpt-powered-voice-notes's People

Contributors

luisarmando-testcoder 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.