Skip to content

Concurrent/Parallel Requests #427

Answered by snakers4
omerzulfiqar asked this question in Q&A
Discussion options

You must be logged in to vote

Does Silero support concurrent/multiple requests out of the box?

Since the VAD is not stateless, each audio stream (thread / process) should have its own separate instance of VAD that has its states reset each time the stream ends.

With a web-server this can be done via re-creating a VAD instance each time if time allows, or by using some publisher-consumer architecture, where there is one or several workers, each worker consuming a separate audio stream.

Batching is possible, but I would not recommend doing that in production, this is somewhat complicated and error-prone.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@omerzulfiqar
Comment options

@snakers4
Comment options

Answer selected by snakers4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants