Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamwa/mssmith
A Telegram bot that utilizes the ChatGPT API and can communicate through voice.
https://github.com/williamwa/mssmith
chatpgt-api telegram-bot tts whisper
Last synced: 23 days ago
JSON representation
A Telegram bot that utilizes the ChatGPT API and can communicate through voice.
- Host: GitHub
- URL: https://github.com/williamwa/mssmith
- Owner: williamwa
- Created: 2023-03-23T13:24:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T15:07:32.000Z (almost 2 years ago)
- Last Synced: 2024-11-08T09:20:34.442Z (3 months ago)
- Topics: chatpgt-api, telegram-bot, tts, whisper
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This project is a telegram bot which can talk with you.
- Using gpt-3.5-turbo api
- Using whisper api to convert audio to text
- Using azure text to speech api to convert text to audioDeploy:
Step 1: Get API keys:
- Create a Telegram bot and get the token
- Get OpenAI API key
- Create Azure Cognitive Service -> Speech Service, get API key and regionStep 2: Run bot webhook service:
- create a .env file with following content:
```
BOT_TOKEN=xxxxxxDOMAIN=a web domain for telegram web hook
PORT=443OPENAI_API_KEY=sk-xxxxx
SPEECH_KEY=xxxxx
SPEECH_REGION=yourreagion
```- npm install
- node index.jsStep 3: Set webhook for your bot:
- send a reuqest to following url to set webhook:
https://api.telegram.org/bot{BOT_TIKEN}/setWebhook?url=https://{DOMAIN}/telegram