RonAdames / telegram_flowise

This is a Telegram Bot 🤖 using Flowise API call giving a lot of posibilities with langchain tecnology.
MIT License
15 stars 8 forks source link

Is there anyway we can integrate the new speech to text feature? #1

Open adolfousier opened 6 months ago

adolfousier commented 6 months ago

Great work with this tool I have been testing it and works great. I appreciate your work thank you! Flowise just released multi-modal which allowed us to speech to text and also image-to-text. Speech-to-text I think could be a great feature for the Telegram integration.

Is there any way we can integrate the new speech-to-text feature?

More info: https://docs.flowiseai.com/using-flowise/api#speech-to-text https://docs.flowiseai.com/using-flowise/api#image-uploads Screenshot 2024-03-09 at 00 32 57

RonAdames commented 3 months ago

Hey bro, I was traveling and was kind of disconected, but I'd like to get the bot better, remember I'm not an expert in coding, so it's an adenture for me. Have you tried to make it work?

adolfousier commented 3 months ago

Unfortunately, I didn't but shouldn't be hard, if there were any of our clients asking for it, I would try it out but was just asking. Thanks, buddy!

RonAdames commented 3 months ago

I see, by the way I think it would be greate to make it work. I apretiate your help.

adolfousier commented 2 months ago

Hey bro! Look. I have a new code built in Rust with lots of pretty nice add-ups that I integrated based on customer feedback, it have email notifications, Telegram notifications, set customized triggers on or off to groups or DMs in the environment variables. I can give you access if you want. Let me know and I share it with you, for now, it's private. Customize an empty request response and more. We can also set DMs response to false so if customers doesn't want the bot replying by dms, we can just change .env variable.

Your code helped me a lot in the beginning so I would like to contribute back. Basically we can set variables like this for the following:

Set personalized message for empty requests EMPTY_REQUEST_RESPONSE=true EMPTY_REQUEST_QUERY="The user sent an empty request. Please provide a friendly and engaging response. Be creative!"

Set Notifications true or false EMAIL_NOTIFICATIONS_ENABLED=true TELEGRAM_NOTIFICATION_ENABLED=true

Set triggers true or false GROUPS_TRIGGERS_ENABLED=true DM_TRIGGERS_ENABLED=false

Set DM response DM_RESPONSE_ENABLED=true

Image upload is integrated, if your backend accepts file_data it's set up for that. I'm using it with my backend so it does work plus I will build the STT integration for speech-to-text soon