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

Sometimes blocking about test_microphone.py #255

Open
YunzhaoLu opened this issue Jul 6, 2024 · 3 comments
Open

Sometimes blocking about test_microphone.py #255

YunzhaoLu opened this issue Jul 6, 2024 · 3 comments

Comments

@YunzhaoLu
Copy link

YunzhaoLu commented Jul 6, 2024

Using this python script to test microphone connecting to websocket server.
https://github.com/alphacep/vosk-server/blob/master/websocket/test_microphone.py
There is blocking (as following) if server side doesn't return response at each data chunk.
while True:
data = await audio_queue.get()
await websocket.send(data)
print (await websocket.recv()) # blocking here waiting for message.

It happened when VAD is applied at server side and no response if data chunk is silent.

@nshmyrev
Copy link
Contributor

Sorry, we do not have VAD. Probably you don't have enough memory on the server and it goes to swap. Try to increase memory.

@YunzhaoLu
Copy link
Author

image

It should not relate to memory. Please see this flow. Server drop the silent chunks, and client waits for response, and never send the next chunk. Thank you.

@nshmyrev
Copy link
Contributor

We do not have VAD in our server, it is probably your custom modification.

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

No branches or pull requests

2 participants