Giter VIP home page Giter VIP logo

parrot's Introduction

Nuxt Whisper Demo

This is my parrot app that I built for fun. Say something and it will reply back.

About this demo

In this demo we use the front-end of a Nuxt 3 app to upload an audio file to a Nuxt API route.

The API route processes the file with the formidable library to parse the multipart file.

The file is then sent to OpenAI's Whisper API, which is an ASR (Automatic Speech Recognition) API.

Improvements

There are a few improvements I want to bring to the app. Below are a few of them.

Audio visualisation [status: research]

When the user speaks, we want to visualise the audio. We also want the visualisation for when the parrot speaks back.

Here is an article that I have found: A Guide To Audio Visualization With JavaScript And GSAP (Part 1)

General UI updates [status: research]

  • [] parrot icon, including the favicon
  • [] move the description out of the way, make it accessible via a button
  • [] make it visually appealing with an animated parrot

Make it a PWA

  • [] Make the app installable
  • [] Make it open offline
  • [] When offline, use the browser's SpeechSynthesis API

Configuration

You will need to create a .env file and set the OPENAI_KEY key to your own OpenAI key. This implies that you have an account at openai.com. Go to platform.openai.com/account/api-keys to create a new secret key.

Your .env file should look like this:

OPENAI_KEY=sk-dja9sd8jas9d8ajsd9asjda9djasd98sjd98ajd98sajdas9 # not a real key

Starting up the Nuxt project

The following is from the "Nuxt Minimal Starter" guide

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

parrot's People

Contributors

cedpoilly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nonamecodi

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.