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

SpeechGPT project completion #106

Merged
merged 73 commits into from
Jun 8, 2023
Merged

SpeechGPT project completion #106

merged 73 commits into from
Jun 8, 2023

Conversation

Gaurang-1402
Copy link
Contributor

Description

We finished working on issues #99, #100, #101 and #102. 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 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=...
FIREBASE_SERVICE_ACCOUNT_KEY= ...

NEXT_PUBLIC_FIREBASE_API_KEY= ...
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN= ...
NEXT_PUBLIC_FIREBASE_PROJECT_ID= ...
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET= ...
NEXT_PUBLIC_FIREBASE_MESSAGE_SENDER_ID= ...
NEXT_PUBLIC_FIREBASE_APP_ID= ...
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID= ...
NEXT_PUBLIC_FIREBASE_SERVICE_ACCOUNT_KEY= ...

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",
    "classnames": "^2.3.2",
    "firebase-admin": "^11.5.0",
    "heroicons": "^2.0.16",
    "highlight.js": "^11.7.0",
    "next": "latest",
    "next-auth": "^4.19.2",
    "openai": "^3.2.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-firebase-hooks": "^5.1.1",
    "react-hot-toast": "^2.4.0",
    "react-markdown": "^8.0.5",
    "react-select": "^5.7.0",
    "react-speech-recognition": "^3.10.0",
    "react-syntax-highlighter": "^15.5.0",
    "swr": "^2.0.4"
  },
  "devDependencies": {
    "@types/node": "18.11.3",
    "@types/react": "18.0.21",
    "@types/react-dom": "18.0.6",
    "@types/react-speech-recognition": "^3.9.1",
    "@types/react-syntax-highlighter": "^15.5.6",
    "autoprefixer": "^10.4.12",
    "postcss": "^8.4.18",
    "tailwindcss": "^3.2.4",
    "typescript": "4.9.4"
  }

Gaurang-1402 and others added 30 commits February 9, 2023 21:34
Gaurang-1402 and others added 25 commits April 5, 2023 12:05
try alternative method for speech recognition with react hooks for mo…
Change response profile pic
cleanup, replace facebook auth
@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 May 18, 2023
Copy link
Contributor

@jfResearchEng jfResearchEng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for now to unblock cloud integration.

@jfResearchEng jfResearchEng merged commit de077fd into facebookresearch:main Jun 8, 2023
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.

4 participants