私は kaldi 用のgstreamer サーバーを実行しています。これは内部的に tornado を使用して、転写用の HTTP エンドポイントを提供します。例: example.com:8888/dynamic/recognize
これは関連するコードだと思います:
class Application(tornado.web.Application):
def __init__(self):
settings = dict(
template_path=os.path.join(os.path.dirname(os.path.dirname(__file__)), "templates"),
static_path=os.path.join(os.path.dirname(os.path.dirname(__file__)), "static"),
autoescape=None,
)
handlers = [
[...]
(r"/client/dynamic/recognize", HttpChunkedRecognizeHandler),
[...],
]
tornado.web.Application.__init__(self, handlers, **settings)
私は Tornado には詳しくありませんが、tornado.web.Application
docsを見ると、タイムアウトについての言及はありませんsettings
。
他にも同様の質問がいくつか見られました。たとえば、 this oneですが、クライアント側を扱っています。この回答は関連があるようですが、私の場合に適用する方法がわかりません。