Minor fixes

This commit is contained in:
Jeremiah Rose 2021-10-03 22:40:15 +11:00
parent fa3707d70a
commit c420d9b293
2 changed files with 2 additions and 14 deletions

View File

@ -361,20 +361,6 @@ Metadata* STT_IntermediateDecodeExpensiveWithMetadata(StreamingState* aSctx,
* @note This method will free the state pointer (@p aSctx). * @note This method will free the state pointer (@p aSctx).
*/ */
STT_EXPORT STT_EXPORT
char* STT_IntermediateDecodeExpensive(StreamingState* aSctx);
/**
* @brief Compute the intermediate decoding of an ongoing streaming inference,
*
* @param aSctx A streaming state pointer returned by {@link STT_CreateStream()}.
* @param aNumResults The number of candidate transcripts to return.
*
* @return Metadata struct containing multiple candidate transcripts. Each transcript
* has per-token metadata including timing information. The user is
* responsible for freeing Metadata by calling {@link STT_FreeMetadata()}.
* Returns NULL on error.
*/
STT_EXPORT
char* STT_FinishStream(StreamingState* aSctx); char* STT_FinishStream(StreamingState* aSctx);
/** /**

View File

@ -35,7 +35,9 @@ using namespace node;
%newobject STT_SpeechToText; %newobject STT_SpeechToText;
%newobject STT_IntermediateDecode; %newobject STT_IntermediateDecode;
%newobject STT_IntermediateDecodeWithMetadata;
%newobject STT_IntermediateDecodeExpensive; %newobject STT_IntermediateDecodeExpensive;
%newobject STT_IntermediateDecodeExpensiveWithMetadata;
%newobject STT_FinishStream; %newobject STT_FinishStream;
%newobject STT_Version; %newobject STT_Version;
%newobject STT_ErrorCodeToErrorMessage; %newobject STT_ErrorCodeToErrorMessage;