Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamspias/chatgpt-voice-chatbot-telegram
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.
https://github.com/shamspias/chatgpt-voice-chatbot-telegram
celery chatbot chatgpt dall-e flask gpt-3 openjourney python telegram-bot telegram-voice-chat text-to-speech text-to-speech-python3 tts voice-chat voice-conversion voice-recognition voice-to-text whisper
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/shamspias/chatgpt-voice-chatbot-telegram
- Owner: shamspias
- Created: 2023-03-02T06:31:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-20T16:49:41.000Z (over 1 year ago)
- Last Synced: 2024-11-18T05:38:35.553Z (2 months ago)
- Topics: celery, chatbot, chatgpt, dall-e, flask, gpt-3, openjourney, python, telegram-bot, telegram-voice-chat, text-to-speech, text-to-speech-python3, tts, voice-chat, voice-conversion, voice-recognition, voice-to-text, whisper
- Language: Python
- Homepage: https://t.me/deadlyaibot
- Size: 69.3 KB
- Stars: 60
- Watchers: 7
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.