Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"response.audio_transcript.done" server event arrives too late #25

Open
fedorenchik opened this issue Jan 22, 2025 · 5 comments
Open

"response.audio_transcript.done" server event arrives too late #25

fedorenchik opened this issue Jan 22, 2025 · 5 comments

Comments

@fedorenchik
Copy link

Our use case is robot with voice replies and relevant actions. Voice replies are sent via audio channel and relevant robot actions are sent via data channel with "response.create" and "response.done". And "response.create" sends data from "response.audio_transcript.done" server event.

Actual results:

  1. "response.audio_transcript.done" server event arrives 5-35 seconds after relevant audio data finished transmitting (that is, after AI agent stops speaking reply).
  2. "response.done" arrives 5-10 seconds after "response.create" is sent.

So, at the end, robots actions are executed after some delay after robot stops speaking, which looks unnatural and gives an impression that robot is stuck.

Expected results:

  1. "response.audio_transcript.done" server event arrives at the same time or before audio data transmission is finished (robot stops talking)
  2. "response.done" server event arrives somewhat faster? 1-2 seconds if possible.
@thebhulawat
Copy link

I am working on esp32 and noticed that sporadically these events are not even sent. Have you noticed something like that?

@thebhulawat
Copy link

I also observed that sometimes the delay is not in secs but minutes for server events.

@thebhulawat
Copy link

thebhulawat commented Jan 22, 2025

Weird part is when I run real time api on a browser client, the latency for the events go away

@fedorenchik
Copy link
Author

I am working on esp32 and noticed that sporadically these events are not even sent. Have you noticed something like that?

I've noticed some events are returned, but have type set to "null" or sometimes also error is returned.

@thebhulawat
Copy link

this has fixed it to some extent: Sean-Der/libpeer#1
but yet to fully test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants