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

Output stream issue #1

Open
WikiLucas00 opened this issue Oct 15, 2024 · 9 comments
Open

Output stream issue #1

WikiLucas00 opened this issue Oct 15, 2024 · 9 comments

Comments

@WikiLucas00
Copy link

Hello! I tried this project but noticed some problems in the response stream. It seems the audio chunks are being played as soon as available, not waiting for the current one to finish playing.

Here's a video of the answer I received (using ./examples/streaming_cli.py) when I asked it to tell a story:

openai_realtime_client.mp4
@RazaProdigy
Copy link

I can confirm this. The audio chunks are not playing as expected.

@logan-markewich
Copy link
Contributor

Interesting, if either @RazaProdigy or @WikiLucas00 can spot where the fix is, happy to merge a pr

I'll try to take a look soon if not

@mdagost
Copy link

mdagost commented Oct 21, 2024

Yeah--I'm seeing the same thing.

@mdagost
Copy link

mdagost commented Oct 21, 2024

In case it's helpful, this python code that I wrote does stream audio properly on my system: https://github.com/mdagost/openai-realtime-streamlit

@tanvithakur94
Copy link

This change helped me in fixing the above issue described - #5

@RazaProdigy
Copy link

@tanvithakur94 Still same issue after increasing queue max size ☹

@tanvithakur94
Copy link

@tanvithakur94 Still same issue after increasing queue max size ☹

@RazaProdigy If you use airpods or some input device with good noise cancellation, it should work. For better performance, you can mute the input volume after you are done talking.

@logan-markewich
Copy link
Contributor

yea, in a noisy environment the interrupt mode is a little flakey. There is some threshold settings that you can play with, I don't think these are fully exposed in the API

I don't think the queue size has much to do with this

@ThreepE0
Copy link

This happens when the mic is muted after input. Similar experience as to when the model is picking itself up, but this issue is NOT related to that.

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

6 participants