diff --git a/native_client/coqui-stt.h b/native_client/coqui-stt.h index f2073900..41177998 100644 --- a/native_client/coqui-stt.h +++ b/native_client/coqui-stt.h @@ -361,20 +361,6 @@ Metadata* STT_IntermediateDecodeExpensiveWithMetadata(StreamingState* aSctx, * @note This method will free the state pointer (@p aSctx). */ 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); /** diff --git a/native_client/javascript/stt.i b/native_client/javascript/stt.i index 8a7b9464..79d52588 100644 --- a/native_client/javascript/stt.i +++ b/native_client/javascript/stt.i @@ -35,7 +35,9 @@ using namespace node; %newobject STT_SpeechToText; %newobject STT_IntermediateDecode; +%newobject STT_IntermediateDecodeWithMetadata; %newobject STT_IntermediateDecodeExpensive; +%newobject STT_IntermediateDecodeExpensiveWithMetadata; %newobject STT_FinishStream; %newobject STT_Version; %newobject STT_ErrorCodeToErrorMessage;