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.
52 lines • 2.25 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ITranscriptionService = void 0;
// @ts-nocheck
var events_1 = __importDefault(require("events"));
var ITranscriptionService = /** @class */ (function (_super) {
__extends(ITranscriptionService, _super);
function ITranscriptionService() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* Initializes the transcription service.
* @param {MediaStream} mediaStream - The media stream to transcribe.
*/
ITranscriptionService.prototype.initialize = function (mediaStream) {
throw new Error("initialize method must be implemented");
};
/**
* Starts the transcription process.
* @param {MediaStream} mediaStream - The media stream to transcribe.
*/
ITranscriptionService.prototype.startTranscription = function (mediaStream) {
throw new Error("startTranscription method must be implemented");
};
/**
* Stops the transcription process.
*/
ITranscriptionService.prototype.stopTranscription = function () {
throw new Error("stopTranscription method must be implemented");
};
return ITranscriptionService;
}(events_1.default));
exports.ITranscriptionService = ITranscriptionService;
//# sourceMappingURL=ITranscriptionService.js.map