Git Product home page Git Product logo

gptand11labs's Introduction

Chat Assistant Application

This is a Python script that allows you to interact with an AI assistant in the console. The assistant uses the OpenAI GPT-3 model for generating text responses, and the ElevenLabs API for converting these responses into audio. The assistant is designed to simulate the character Samantha from the movie 'Her'.

Getting Started

Prerequisites

  • Python 3.6+
  • OpenAI Python v0.27.0
  • ElevenLabs Python SDK

Installation

  • Clone the repository
  • Install the required packages using pip:
    • openai
    • elevenlabs
  • Replace 'YOUR KEY' in the script with your actual API keys provided by OpenAI and ElevenLabs.

Usage

Run the script using Python. python main.py Once the script is running, you can interact with the assistant by typing your messages into the console. The assistant will respond with both text (printed to the console) and audio. To end the conversation, type "quit".

Customization

You can customize the assistant's behavior by modifying the system message in the script. This message sets the assistant's "persona". For example, the default persona is Samantha from the movie 'Her'. You can also change the voice of the assistant by modifying the voice parameter in the script.

License

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

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.