astrologos / Speakeasy-ChatGPT

Voice-enabled ChatGPT interface

Home Page:https://www.github.com/astrologos/speakeasy-gpt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Buy Me A Coffee"

Speakeasy GPT

This repository contains code for a web-based chat application called Speakeasy GPT. The application uses the OpenAI GPT-3.5 Turbo model to generate responses based on user prompts. It allows users to interact with the chatbot using text input and voice (feature in development).

Features

  • Text-based chat: Users can enter text prompts in the input field to have a conversation with the chatbot.
  • Real-time streaming response: The chatbot streams text responses.
  • Text-to-Speech: Speakeasy GPT will play high-fidelity and convincing audio of ChatGPT's responses.
  • Memory: The interface has queued memory of up to 10 responses.
  • Preamble: Each message will be prepended by the preamble to keep ChatGPT on track.
  • System instructions: The initial message contains system instructions that will inform ChatGPT's responses and behavior.
  • API integration: The application integrates with the OpenAI and ElevenLabs APIs to interact with the chatbot.


Usage

To use the Speakeasy GPT application, follow these steps:

  • Clone the repository or download the code files.
  • Open the index.html file in a web browser.
  • Ensure that you have a valid API key for the OpenAI API. This key is required for the application to function properly.
    • Enter your API key in the "OpenAI API Key" input field.
  • Ensure that you have a valid API key for the ElevenLabs API. This key is required for the application to function properly.
    • Enter your API key in the "ElevenLabs API Key" input field.
  • Start a conversation by typing a prompt in the text input field.
  • Press the submit button or hit Enter to send the prompt to the chatbot.
  • The chatbot will generate a response, which will be displayed in the result area.
  • The response audio will be played.

Dependencies

The Speakeasy GPT application relies on the following dependencies:

  • Axios: A promise-based HTTP client for making API requests.
    • This relies on the public implementation of Axios. No libraries are required to be installed locally.
  • The application requires a valid API key for the OpenAI API.
  • The application also requires a valid API key for the ElevenLabs API.

Customization

The CSS file styles.css can be customized to change the appearance of the chat interface. You can modify the styles to match your preferred design or branding.

Limitations

  • The Speakeasy GPT application relies on the OpenAI GPT-3.5 Turbo model, which has usage limits and pricing. Refer to the OpenAI documentation for more information.
  • The automatic speech recognition feature is still under development and not available in the current version of the application.
  • The user interface is somewhat limited at this point in development.

Contributions

Contributions to the Speakeasy GPT project are welcome. If you encounter any issues or have suggestions for improvements, feel free to create an issue or submit a pull request on the GitHub repository.

License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. This means that you are free to share, copy, and redistribute the work in any medium or format for noncommercial purposes only, provided that you give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. You can find the license here: https://creativecommons.org/licenses/by-nc/2.0/

About

Voice-enabled ChatGPT interface

https://www.github.com/astrologos/speakeasy-gpt


Languages

Language:CSS 69.7%Language:JavaScript 22.7%Language:HTML 7.6%