Skip to content

OneAtDrt/chatJeepTea

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatJeepTea

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.

Getting Started

To use ChatJeepTea, you will need to set the following environment variables:

  • TOKEN for your Telegram bot token
  • OPENAI for 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.

Installation

  1. Clone this repository
  2. python3 -m venv .venv
  3. . .venv/bin/activate
  4. Install dependencies with pip3 install -r src/requirements.txt
  5. Set environment variables (or even better, use direnv)
  6. Run python3 src/main.py

Usage

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.

Contributing

We welcome contributions to ChatJeepTea! To get started, simply fork this repository and submit a pull request with your changes. Please commit often.

License

GPL 3.

About

ChatGPT-based voice Telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%