Comments (5)
Tested, works great for me, many thanks for the quick response.
from chatgpt-telegram-bot.
Hi @Marcello87, that's interesting. I originally intended it as a way to only transcribe audio messages, and not as a direct voice command to ChatGPT.
Should be as easy as replacing these lines:
chatgpt-telegram-bot/telegram_bot.py
Lines 125 to 131 in 946f6a4
With:
response = self.openai.get_chat_response(chat_id=chat_id, query=transcript)
await context.bot.send_message(
chat_id=chat_id,
reply_to_message_id=update.message.message_id,
text=response,
parse_mode=constants.ParseMode.MARKDOWN
)
But I'm not sure how to allow both modes. Will keep this issue open for now, in case someone wants to help
from chatgpt-telegram-bot.
I think it's difficult to use both modes at the same time. Maybe we can set a parameter like VOICE_TO_CHAT
and let users select their prefer mode.
from chatgpt-telegram-bot.
When I set VOICE_REPLY_WITH_TRANSCRIPT_ONLY
to false
, can I let the bot transcribe my voice and output it first, then reply it? It's more user-friendly.
from chatgpt-telegram-bot.
Thanks @Marcello87 @slippersheepig
Added VOICE_REPLY_WITH_TRANSCRIPT_ONLY
env parameter which defaults to true
from chatgpt-telegram-bot.
Related Issues (20)
- Token
- Vision API Functionality Due to Recent OpenAI API Changes
- help
- When contacting the bot, an error occurs HOT 1
- bot unstart HOT 1
- how i can use plugins? HOT 3
- Enabling and using plugins HOT 16
- Can't change model from 3.5 to 4 HOT 1
- Contributions to this Repo HOT 1
- deepl plugin returns text in unicode escape sequence HOT 4
- Exception while handling an update: getattr():
- Deployment issues with fly.io
- Оооид
- Duck Duck Go Rate Limit HOT 1
- Update docker image in docker hub HOT 1
- Separate /image commands for Dall-E 2 and Dall-E 3
- audo ---> text HOT 1
- DDG HOT 3
- Everything worked and abruptly stopped working HOT 1
- Bugs in the operation of plugins: auto_tts, ddg_ddg_search, and ddg_images_earch (403, HttpError).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-telegram-bot.