Expose Stream-related within Stream class

This commit is contained in:
Alexandre Lissy 2020-04-06 20:50:04 +02:00
parent 567595aa5a
commit bf31b2e351

View File

@ -23,13 +23,6 @@ export interface Metadata {
transcripts: CandidateTranscript[]; transcripts: CandidateTranscript[];
} }
/**
* @class
* Provides an interface to a DeepSpeech stream. The constructor cannot be called
* directly, use :js:func:`Model.createStream`.
*/
export class Stream {}
/** /**
* An object providing an interface to a trained DeepSpeech model. * An object providing an interface to a trained DeepSpeech model.
* *
@ -120,7 +113,14 @@ sttWithMetadata(aBuffer: object, aNumResults: number): Metadata;
* @throws on error * @throws on error
*/ */
createStream(): object; createStream(): object;
}
/**
* @class
* Provides an interface to a DeepSpeech stream. The constructor cannot be called
* directly, use :js:func:`Model.createStream`.
*/
declare class Stream {
/** /**
* Feed audio samples to an ongoing streaming inference. * Feed audio samples to an ongoing streaming inference.
* *