Skip to content

Xaik89/ai_voice_assistant_tg_bot

Repository files navigation

AI Assistant for Telegram Bot:

This bot provides two input options: text and voice.
The bot retrieves responses from ChatGPT for both types of input.

For voice input, the pipeline includes:
 1. Receive voice and process it on the server (ai_voice_bot.py)
 2. Use Whisper AI (from OpenAI) model locally that converts Speech to Text (STT model)
 3. The text generated is then corrected using ChatGPT API, which can be especially useful for children
 4. Use ChatGPT API with prompt and limited history for each particular user
 5. Convert response from ChatGPT to voice by using Text to Speech models ( TTS by coqui-AI and silero_tts for RU language)

This is a pet project created for my daughter :)

link to medium article - https://medium.com/@andreyhaykin/make-your-own-telegram-voice-assistant-with-chatgpt-20d79c042a4f?source=friends_link&sk=27c8477a5209807be01fb054351bb0f0

About

Telegram bot with options to receive text and response with ChatGPT and also parse voice and response in the same language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages