Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/betweenlife/tg-voice-gpt
TG Voice GPT is a Telegram Bot that allows you to interact with ChatGPT through both vocal and typed messages in multiple languages.
https://github.com/betweenlife/tg-voice-gpt
chatgpt telegram-bot
Last synced: 3 months ago
JSON representation
TG Voice GPT is a Telegram Bot that allows you to interact with ChatGPT through both vocal and typed messages in multiple languages.
- Host: GitHub
- URL: https://github.com/betweenlife/tg-voice-gpt
- Owner: betweenlife
- Created: 2024-08-23T13:17:23.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T14:47:19.000Z (4 months ago)
- Last Synced: 2024-09-27T22:03:11.751Z (3 months ago)
- Topics: chatgpt, telegram-bot
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TG Voice GPT
TG Voice GPT is a Telegram Bot that allows you to interact with ChatGPT through both vocal and typed messages in multiple languages.
## Features
- Interact with ChatGPT via text or voice messages.
- Supports multiple languages.
- Simple to set up and run.## Prerequisites
1. **Python 3.7+**: Ensure you have Python installed on your system.
2. **Virtual Environment**: It's recommended to use a virtual environment for managing dependencies.## Setup
### 1. Clone the Repository
```bash
git clone https://github.com/betweenlife/tg-voice-gpt.git
cd tg-voice-gpt
```### 2. Create and Activate a Virtual Environment
```bash
python -m venv venv
source venv/bin/activate
```### 3. Install Dependencies
```bash
pip install -r requirements.txt
```### 4. Set Up Environment Variables
Create a file named ".env" in the project root directory and add the following variables:
- TG_BOT_TOKEN: your Telegram bot token. Follow Telegram [documentation](https://core.telegram.org/bots/tutorial) to create one.
- OPENAI_API_KEY: your OpenAI API key. Obtain it from OpenAI's API [documentation](https://openai.com/index/openai-api/).
- GPT_MODEL: the model to use with OpenAI's GPT. Default is "gpt-3.5-turbo", but it can be changed to another model if you have a suitable OpenAI plan.Check ".env.example" to do it.
### 5. Run the Bot
Start the bot with the following command:
```bash
python voice_gpt.py
```## Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
## Contact
For any questions or issues, please contact [email protected].