Text_input / chat_input set text programatically

My app is running locally for now. Is there a way to set custom text on a text input or a chat input? Context is I am allowing users to say something on their microphones, transcribing audio to text and I want to place the transcribed text on the chat input or text input so they can interact with the app. Is this possible with text_input or chat_input? As you can tell, I am a newbie here but excited to learn.

Greetings and a warm welcome to our Streamlit community! We’re delighted to have you on board. To help you get the most out of your experience here, please visit our thread Using Streamlit: How to Post a Question Effectively. This guide is invaluable for formulating your questions in a way that’s clear and concise, ensuring prompt and insightful responses from our community of experts and enthusiasts.