Better descriptions for intermediateDecodeExpensive

This commit is contained in:
Jeremiah Rose 2021-09-08 17:58:19 +10:00
parent 1a84d2788d
commit fe03974d7d
2 changed files with 8 additions and 3 deletions

View File

@ -329,7 +329,10 @@ STT_EXPORT
char* STT_IntermediateDecodeExpensive(StreamingState* aSctx);
/**
* @brief Compute the intermediate decoding of an ongoing streaming inference,
* @brief Compute the intermediate decoding of an ongoing streaming inference, flushing
buffers first. This ensures that all audio that has been streamed so far is
included in the result, but is more expensive than STT_IntermediateDecode()
because buffers are processed through the acoustic model.
*
* @param aSctx A streaming state pointer returned by {@link STT_CreateStream()}.
* @param aNumResults The number of candidate transcripts to return.

View File

@ -283,8 +283,10 @@ class Stream(object):
def intermediateDecodeExpensive(self):
"""
Compute the intermediate decoding of an ongoing streaming inference, flushing buffers.
This ensures that all data that has been streamed so far are included in the result.
Compute the intermediate decoding of an ongoing streaming inference, flushing
buffers first. This ensures that all audio that has been streamed so far is
included in the result, but is more expensive than intermediateDecode() because
buffers are processed through the acoustic model.
:return: The STT intermediate result.
:type: str