Creates a transcriber that generates transcriptions from the output of HTML <audio>
or <video>
elements.
Attaches a MediaStream to this Transcriber for transcription. A MediaStream must be attached before starting transcription.
A MediaStream to transcribe
Detaches the MediaStream used for transcription. TODO
Returns the most recent AudioBuffer that was input to the underlying model for text generation. This is useful in cases where we want to double-check the audio being input to the model while debugging.
An AudioBuffer
Preloads the models and initializes the buffer required for transcription.
Starts transcription.
Transcription will stop when stop is called.
Note that the Transcriber must have a MediaStream attached via Transcriber.attachStream before starting transcription.
Stops transcription.
Transcribes the output of an
<audio>
or<video>
HTML element.