microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.6k stars 1.55k forks source link

Mic button should be replaced with Send button while typing #5244

Closed Muhammad-Faizann closed 3 months ago

Muhammad-Faizann commented 4 months ago

I have a question

Hi everyone, I need help with BotFramework. I'm looking to replace the microphone button with a send button when a user starts typing in the input box. Any guidance or code snippets to achieve this would be greatly appreciated. Thanks!

Muhammad-Faizann commented 4 months ago

@OEvgeny @compulim @tdurnford any update?

stevkan commented 3 months ago

@Muhammad-Faizann - Unfortunately, this isn't possible. The send/speak control that is displayed in the send box is determined as part of Web Chat's start up and whether speech is enabled or not, at that moment. There is no option for hot-swapping the controls in Web Chat, at this time.

I will mark this as a feature request for consideration in a future release. If your project is a proper React project, it may be possible to implement something like this. But that is outside the scope of Web Chat and would best be posted as a React question on Stack Overflow.

Muhammad-Faizann commented 3 months ago

Thanks @stevkan