alumae / kaldi-gstreamer-server

Real-time full-duplex speech recognition server, based on the Kaldi toolkit and the GStreamer framwork.
BSD 2-Clause "Simplified" License
1.07k stars 341 forks source link

Fix waiting for final hypothesis in HTTPChunkedRecognize for Tornado 5 #127

Closed Gastron closed 6 years ago

Gastron commented 6 years ago

On Tornado 5 the threading module based concurrency solution would end up in some thread limbo and never return. This fix works in both Tornado 4 and Tornado 5.

The concurrent.futures module is a dependency of Tornado already, so we shouldn't need to add any additional requirements.

alumae commented 6 years ago

Thanks!