Add non-streaming ASR server implementation #377
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR tries to implement the framework proposed in k2-fsa/k2#975
The current implementation is all in Python.
The following shows a screen recording for the running results: 1 server + 4 clients.
Untitled.mov
Usage
From the output of
py-spy top --pid <pid-of-the-server>
, we can see that a large part of the time is spent in neural network computation. I am going to write a c++ extension to do the nerual network computation, which can be run in a separate thread with the global interpretor lock being released.The decoding part will still be in Python, we can move it to C++ if needed.
Shall we put the server stuff in a separate repo, e.g.,
k2-fsa/server
or can I put it incsukuangfj/server
?