alphacep / alphacep/vosk-api

An option to FinalResult which would skip all the deallocations

オープン
#1,037 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
15.1k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

This is really just a feature suggestion to add batch mode segment based decoding to the Recognizer.

Implementing this myself, I ran into the following problems:
* When you call FinalResults() to get the final results the call deallocates a bunch of things including the decoder which has to be reinitialized now between each segment adding unnecessary overhead.
* There is no way to call InitState() which means word offset times are adjust by however much data you have decoded up to that point.

I would suggest adding an option to FinalResult() which would skip all the deallocations and an option to Result() and FinalResult() which does not adjust start/end times to support batch mode processing. It would then be up to the user to periodically reallocate the decoder (for example to avoid memory leaks etc.).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。