Hello, I've tried for 5 hours to change my code with different LLMs and forum help, nothing works.
I am not able to close a realtime api connection in my react web app after a button press. It just always keeps the microphone on and I can see in the console how it is still listening the audio and giving responses even though it should be closed. here is my code and a little video as well. Thank you so much in advance.
ChatBubble.tsx where the connection actually takes place.