/speechgpt

SpeechGPT is a web application that enables you to converse with ChatGPT.

Primary LanguageTypeScriptMIT LicenseMIT

SpeechGPT

Website β€’ [δΈ­ζ–‡]

SpeechGPT Website Demo

Introduction

SpeechGPT is a web application that enables you to converse with ChatGPT.
You can utilize this app to improve your language speaking skills or simply have fun chatting with ChatGPT.

Features

  • πŸ“– Open source and free: Anyone can use, modify it without cost.
  • πŸ”’ Privacy First: All data is stored locally.
  • πŸ“± Mobile friendly: Designed to be accessible and usable on mobile devices.
  • πŸ“š Support for multiple languages: Supports over 100 languages.
  • πŸŽ™ Speech Recognition: Includes both built-in speech recognition and integration with Azure Speech Services.
  • πŸ”Š Speech Synthesis: Includes built-in speech synthesis, as well as integration with Amazon Polly and Azure Speech Services.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Tutorial

  1. Set the OpenAI API Key
    • Go to Settings and navigate to the Chat section.
    • Set the OpenAI API Key.
    • If you don't have an OpenAI API Key, follow this tutorial on how to get an OpenAI API Key.
  2. Set up Azure Speech Services (optional)
    • Go to Settings and navigate to the Synthesis section.
    • Change the Speech Synthesis Service to Azure TTS.
    • Set the Azure Region and Azure Access Key.
  3. Set up Amazon Polly (optional)
    • Go to Settings and navigate to the Synthesis section.
    • Change the Speech Synthesis Service to Amazon Polly.
    • Set the AWS Region, AWS Access Key ID, and Secret Access Key (the Access Key should have the AmazonPollyFullAccess policy).
    • If you don't have an AWS Access Key, follow this tutorial on how to create an IAM user in AWS.

Development

  1. Install dependencies.
yarn
  1. Start development server.
yarn dev
  1. Build for production.
yarn build

Code formatting(Using Prettier).

yarn format

Deployment

Deploying with Vercel

Deploy with Vercel

Deploying with Docker

  1. Pull the Docker image.
docker pull hahahumble/speechgpt
  1. Run the Docker container.
docker run -d -p 8080:8080 --name speechgpt hahahumble/speechgpt
  1. Visit http://localhost:8080/ to access the application.

Building and running the Docker image

  1. Build the Docker image.
docker build -t speechgpt .
  1. Run the Docker container.
docker run -d -p 8080:8080 --name=speechgpt speechgpt
  1. Visit http://localhost:8080/ to access the application.

License

This project is licensed under the terms of the MIT license.