ChatJeepTea is a Telegram chat bot that uses OpenAI's API, Whisper, and Google text-to-speech to enable voice-based conversations in near-realtime. It is written in Python.
To use ChatJeepTea, you will need to set the following environment variables:
TOKENfor your Telegram bot tokenOPENAIfor your OpenAI API key
Please also save your google cloud credentials in src/key.json.
src/auth.json gets auto-populated with the first telegram user id that uses the bot. That's because these are paying APIs, and telegram bots are public. If you want to grant other users the ability to use the bot, then add their telegram user ids to this file too.
- Clone this repository
python3 -m venv .venv. .venv/bin/activate- Install dependencies with
pip3 install -r src/requirements.txt - Set environment variables (or even better, use direnv)
- Run
python3 src/main.py
To chat with ChatJeepTea, simply add the bot to a Telegram chat and send messages as usual. The bot will respond to your messages with voice messages generated by Google text-to-speech.
Note: group chats are not currently supported.
We welcome contributions to ChatJeepTea! To get started, simply fork this repository and submit a pull request with your changes. Please commit often.
GPL 3.