Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added telegram bot functionality to send text and audio files | used OpenAI #112

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

s3roy
Copy link

@s3roy s3roy commented Sep 3, 2023

Note

To completely include the feature in textbase itself instead of telegram.
I need permission to make changes in the UI one to allow users to send audio to the textbase-bot and then integrate the same code to generate the response based on the audio.

IMP: Create a folder audio inside the telegram folder.

Scope

Added telegram bot feature to access the open AI using text and audio formats.

Screenshots


image

Audio used:
audio_2023-09-03_23-52-49.zip

Code improvements

  • [Did you add some generic like utility, component, or anything else useful outside of this PR]

I used the whisper repo from Open AI to transcribe the audio files into text messages.
I have used Open AI and Telegram bot auth tokens to configure the app in utils/config.ini

Developer checklist

  • [ yes] I’ve manually tested that code works locally on desktop and mobile browsers.
  • [yes ] I’ve reviewed my code.
  • [yes ] I’ve removed all my personal credentials (API keys etc.) from the code.

@vercel
Copy link

vercel bot commented Sep 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
textbase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2023 9:51am

@s3roy s3roy changed the title Svr hackathon Added telegram bot functionality to send text and audio files Sep 3, 2023
@s3roy s3roy changed the title Added telegram bot functionality to send text and audio files Added telegram bot functionality to send text and audio files | used OpenAI Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant