Giter Club home page Giter Club logo

shamspias / chatgpt-voice-chatbot-telegram Goto Github PK

View Code? Open in Web Editor NEW
54.0 7.0 17.0 71 KB

ChatGPT Voice Chatbot Telegram is a Python and Flask-based GitHub repository that enables users to communicate with an AI chatbot using voice-to-text and text-to-voice technologies powered by OpenAI. The repository provides a flexible and customizable solution for building advanced voice-enabled chatbots using natural language processing.

Home Page: https://t.me/deadlyaibot

Python 100.00%
celery chatgpt flask python telegram-bot voice-recognition chatbot telegram-voice-chat voice-chat voice-conversion

chatgpt-voice-chatbot-telegram's Introduction

ChatGPT Voice Chatbot Telegram

ChatGPT Voice Chatbot Telegram is a Python and Flask-based GitHub repository that allows users to communicate with an AI chatbot using voice-to-text and text-to-voice technologies powered by OpenAI. It uses the GPT-3.5 Turbo model for generating text and ChatML for engineering the prompts.

Features

  • Conversational AI chatbot with voice-to-text and text-to-voice support.
  • Utilizes OpenAI's GPT-3.5 Turbo model for generating text.
  • Stores the last 10 conversations and provides a /clear command to clear them.
  • Uses Celery for task scheduling and asynchronous processing.
  • Integration with Telegram for seamless messaging.
  • Provides a /start or /help command to display a list of available commands.
  • Use of google TTS and speech to text and whisper can choose between them.
  • Use lasted GPT cost efficient model name gpt-3.5-turbo
  • ChatML to more efficient the prompt.
  • Generate image as well
  • See old conversation by using /session
  • Generate Image from Replicate OpenJourney
  • /image to generate image with OpenJourney /create to use DALE-E-2

Requirements

  • Python 3.6 or higher
  • Redis
  • OpenAI API Key
  • Telegram Bot Token
  • ffmpeg

Deployment

Installation

  • Clone the repository to your local machine.
  • Install the required dependencies by running pip install -r requirements.txt.
  • Set up your OpenAI API credentials and update the .env file with the appropriate values.
  • Create an virtual environment and install all requirments and active the environment

Install requirements

  • Install Python3-venv curl redis-server supervisor and FFMPEG
    sudo apt install python3-venv curl redis-server supervisor ffmpeg -y
    

RUN

  • Active virtualenv then run celery celery -A chatbotworker --loglevel=info
  • Run the application with python chatbot.py

Usage

  • Start a conversation with the chatbot by messaging the Telegram bot.
  • Speak to the chatbot using voice-to-text or type your message directly.
  • The chatbot will respond using text-to-voice or text.
  • Use the /clear command to clear the conversation history.

Contribution

Contributions are welcome! Please see the CONTRIBUTING.md file for more details.

chatgpt-voice-chatbot-telegram's People

Contributors

shamspias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-voice-chatbot-telegram's Issues

no spaces around mdjrny-v4 prompt.

Did you intend to have no spaces here? Perhaps you inject them into prompt first?

'prompt': "mdjrny-v4 style" + prompt + "4k resolution",

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.