6.1 C
Canberra
Monday, October 27, 2025

android – get OpenAI realtime API’s textual content return from Agora RTC shopper facet?


`Hey guys I’ve a query about intergrating Agora with Openai’s realtime api. My query is: get the textual content returned by openai realtime api from the shopper?

I’m following this web page: https://docs.agora.io/en/open-ai-integration/get-started/quickstart?platform=python. I’ve set my very own backend on AWS EC2, and the Voice a part of OpenAI realtime api works good. Now I additionally wish to permit the Consumer (Android and Ios) might entry the textual content return by OpenAI.

I’ve observed that’s the official backend implementation: https://github.com/AgoraIO/openai-realtime-python/blob/principal/realtime_agent/agent.py, -> _process_model_messages -> ResponseAudioTranscriptDelta, already offers the textual content return:

  case ResponseAudioTranscriptDelta():
                    # logger.information(f"Obtained textual content message {message=}")
                    asyncio.create_task(self.channel.chat.send_message(
                        ChatMessage(
                            message=to_json(message), msg_id=message.item_id
                        )
                    ))

                case ResponseAudioTranscriptDone():
                    logger.information(f"Textual content message carried out: {message=}")
                    asyncio.create_task(self.channel.chat.send_message(
                        ChatMessage(
                            message=to_json(message), msg_id=message.item_id
                        )
                    ))

So my remaining questions is basiclly tips on how to get the info despatched by “self.channel.chat.send_message” on IOS/Android/Internet

Thanks for you assist!

I’ve tried to make use of
1.signaling sdk
https://www.agora.io/en/merchandise/signaling/

2.chat sdk
https://www.agora.io/en/merchandise/chat/

However since I am new to agora, I’ve not received issues carried out to date.
`

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles