UNPKG

sofya.transcription

Version:

a JavaScript library that provides a robust and flexible solution for real-time audio transcription. It is designed to transcribe audio streams and can be easily integrated into web applications.

13 lines (11 loc) 565 B
// @ts-nocheck export class MediaElementAudioCapture { constructor(); /** * Captures the audio stream from a video element and returns a MediaStream. * @param {HTMLMediaElement} mediaElement - The media element (video or audio) to capture audio from. * @returns The MediaStream with the captured audio. * @throws {Error} - Throws an error if the provided element is not a valid HTMLMediaElement or if no media stream is found on the provided video element. */ captureAudio(mediaElement: HTMLMediaElement): MediaStream; }