deepspeech-gpu
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -36,3 +36,3 @@ /// <reference types="node" /> | ||
*/ | ||
declare class Stream { | ||
declare class StreamImpl { | ||
/** | ||
@@ -83,2 +83,8 @@ * @param nativeStream SWIG wrapper for native StreamingState object. | ||
/** | ||
* Exposes the type of Stream without actually exposing the class. | ||
* Because the Stream class should not be instantiated directly, | ||
* but instead be created via :js:func:`Model.createStream`. | ||
*/ | ||
export declare type Stream = StreamImpl; | ||
/** | ||
* An object providing an interface to a trained DeepSpeech model. | ||
@@ -181,9 +187,9 @@ */ | ||
/** | ||
* Create a new streaming inference state. One can then call :js:func:`Stream.feedAudioContent` and :js:func:`Stream.finishStream` on the returned stream object. | ||
* Create a new streaming inference state. One can then call :js:func:`StreamImpl.feedAudioContent` and :js:func:`StreamImpl.finishStream` on the returned stream object. | ||
* | ||
* @return a :js:func:`Stream` object that represents the streaming state. | ||
* @return a :js:func:`StreamImpl` object that represents the streaming state. | ||
* | ||
* @throws on error | ||
*/ | ||
createStream(): Stream; | ||
createStream(): StreamImpl; | ||
} | ||
@@ -200,3 +206,3 @@ /** | ||
* | ||
* @param metadata Object containing metadata as returned by :js:func:`Model.sttWithMetadata` or :js:func:`Stream.finishStreamWithMetadata` | ||
* @param metadata Object containing metadata as returned by :js:func:`Model.sttWithMetadata` or :js:func:`StreamImpl.finishStreamWithMetadata` | ||
*/ | ||
@@ -211,3 +217,3 @@ export declare function FreeMetadata(metadata: Metadata): void; | ||
*/ | ||
export declare function FreeStream(stream: Stream): void; | ||
export declare function FreeStream(stream: StreamImpl): void; | ||
/** | ||
@@ -214,0 +220,0 @@ * Returns the version of this library. The returned version is a semantic |
10
index.js
@@ -32,3 +32,3 @@ "use strict"; | ||
*/ | ||
class Stream { | ||
class StreamImpl { | ||
/** | ||
@@ -242,5 +242,5 @@ * @param nativeStream SWIG wrapper for native StreamingState object. | ||
/** | ||
* Create a new streaming inference state. One can then call :js:func:`Stream.feedAudioContent` and :js:func:`Stream.finishStream` on the returned stream object. | ||
* Create a new streaming inference state. One can then call :js:func:`StreamImpl.feedAudioContent` and :js:func:`StreamImpl.finishStream` on the returned stream object. | ||
* | ||
* @return a :js:func:`Stream` object that represents the streaming state. | ||
* @return a :js:func:`StreamImpl` object that represents the streaming state. | ||
* | ||
@@ -254,3 +254,3 @@ * @throws on error | ||
} | ||
return new Stream(ctx); | ||
return new StreamImpl(ctx); | ||
} | ||
@@ -272,3 +272,3 @@ } | ||
* | ||
* @param metadata Object containing metadata as returned by :js:func:`Model.sttWithMetadata` or :js:func:`Stream.finishStreamWithMetadata` | ||
* @param metadata Object containing metadata as returned by :js:func:`Model.sttWithMetadata` or :js:func:`StreamImpl.finishStreamWithMetadata` | ||
*/ | ||
@@ -275,0 +275,0 @@ function FreeMetadata(metadata) { |
{ | ||
"name": "deepspeech-gpu", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "DeepSpeech NodeJS bindings", | ||
@@ -10,5 +10,5 @@ "main": "./index.js", | ||
}, | ||
"author": "Mozilla", | ||
"author": "DeepSpeech authors", | ||
"license": "MPL-2.0", | ||
"homepage": "https://github.com/mozilla/DeepSpeech/tree/v0.9.2#project-deepspeech", | ||
"homepage": "https://github.com/mozilla/DeepSpeech/tree/v0.9.3#project-deepspeech", | ||
"files": [ | ||
@@ -15,0 +15,0 @@ "README.md", |
118393905
667