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

No frame arrived issue #1328

Open
teodred opened this issue Aug 6, 2023 · 1 comment
Open

No frame arrived issue #1328

teodred opened this issue Aug 6, 2023 · 1 comment

Comments

@teodred
Copy link

teodred commented Aug 6, 2023

Good evening!
Currently, I am testing my small application that includes streaming voice and processing it, and it works okay for me and for most of the people that I asked to test it. However, I have two users that have encountered an error with starting the streaming. It just does not start at all. I understand that this error is caused by the audio receiver, but I can't replicate it, and fix it.
Here is the code that I am using to start voice streaming :
`

   while True:
      if webrtc_ctx.audio_receiver:
          try:
            audio_frames = webrtc_ctx.audio_receiver.get_frames(timeout=1)
            
        except queue.Empty:
            time.sleep(0.1)
            status_indicator.write("No frame arrived.")
            continue

        status_indicator.write("Running. Say something!")`

What can be done to avoid that issue, or is there some sort of workaround? Or what might be causing it?

@Esdsnqxz
Copy link

hello, i meet the same, did i solve this problem?

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