Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

SpeechGPT UI setup #104

Open
wants to merge 57 commits into
base: main
Choose a base branch
from

Conversation

Gaurang-1402
Copy link
Contributor

Description

We are working on issue #99. So far, we have set up the SpeechGPT UI with authentication, New chat, delete chat, and chat history functionalities. We have also created the styling theme for this project including the colors, fonts, and common styles using Tailwind CSS. We are using Firebase Firestore as our database and Facebook plus Google authentication.

This is part of a larger project aiming to integrate speech recognition using microphone with chatGPT.

Dependencies

You will have to create a .env.local in the root folder of /tree/main/extrnasions/speechgpt with the following API keys and credentials:

// FACEBOOK
FACEBOOK_APP_ID=...
FACEBOOK_APP_SECRET=...

// NEXTAUTH
NEXTAUTH_URL=...
NEXTAUTH_SECRET=...

// OPENAI
OPENAI_API_KEY =...

// GOOGLE
GOOGLE_APP_ID=...
GOOGLE_APP_SECRET=...


// FIREBASE
FIREBASE_API_KEY=...
FIREBASE_AUTH_DOMAIN=...
FIREBASE_PROJECT_ID=...
FIREBASE_STORAGE_BUCKET=...
FIREBASE_MESSAGE_SENDER_ID=...
FIREBASE_APP_ID=...
FIREBASE_MEASUREMENT_ID=...

Next, you will have to install all the dependencies for the UI project. This can be done by running npm i in the root folder of speechgpt. Here are the dependencies found in speechgpt/package.json

  "dependencies": {
    "@heroicons/react": "^2.0.16",
    "heroicons": "^2.0.16",
    "next": "latest",
    "next-auth": "^4.19.2",
    "openai": "^3.1.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-firebase-hooks": "^5.1.1"
  },
  "devDependencies": {
    "@types/node": "18.11.3",
    "@types/react": "18.0.21",
    "@types/react-dom": "18.0.6",
    "autoprefixer": "^10.4.12",
    "postcss": "^8.4.18",
    "tailwindcss": "^3.2.4",
    "typescript": "4.9.4"
  }

Fixes #99

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Feature/Issue validation/testing

No unit testing done so far. This is a WIP (work in progress) project.

@facebook-github-bot
Copy link

Hi @Gaurang-1402!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2023
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

Gaurang-1402 and others added 30 commits March 17, 2023 15:49
try alternative method for speech recognition with react hooks for mo…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChatGPT-like conversational UI in localhost
3 participants