Expose Stream-related within Stream class
This commit is contained in:
parent
567595aa5a
commit
bf31b2e351
14
native_client/javascript/index.d.ts
vendored
14
native_client/javascript/index.d.ts
vendored
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user