To get the text returned by OpenAI's real-time API on the client side, you need to listen for messages sent via self.channel.chat.send_message
in the backend — this is using Agora’s Chat SDK, not the RTC or Signaling SDK. On iOS/Android/Web, integrate the Agora Chat SDK and join the same channel used in your backend. Then, set up a message listener on the client to receive those chat messages (which include the transcript text). The backend is already sending the text using ChatMessage
, so the client just needs to be in the channel and handle incoming chat events properly.