You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By enabling the debug flag when instantiating the RealtimeClient, I was able to see error that I cant switch voice when audio for assistant is active. So I am able to get this working by disconnect() and reconnect(). Is this the only way? I thought updateSession implied we could make changes in flight?
From the documentation it seems like we should be able to update the instructions and the voice during active session?
I am able to run updateSession without any errors.
I can even see the instructions and the voice has changed in this object:
console.log('🎯 Final client state:', clientRef.current.sessionConfig);
However, the current client does not use the updated prompt or voice. Do we need to disconnect, and reconnect for changes to take place?
The text was updated successfully, but these errors were encountered: