Create Mic icon to send audio to a server

Can someone please guide me on how to create mic button on a text field to give mic icon which can be used to record audio?

This might help: Adding speech recognition to Vaadin apps | Vaadin

thank you Olli T. is it possible to get audio file in webm format? this audio file needs to be sent to server for processing web speech api is good but it is not always accurate so we want to send the audio to our server and then process it through LLM

Hi. I am using this modified component

@disciplined-goat Modified? Do you have a version without the video preview?