79613997

Date: 2025-05-09 11:10:14
Score: 0.5
Natty:
Report link

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.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Applitank