@omnimedia/omnitool
Version:
open source video processing tools
19 lines • 589 B
JavaScript
import { Comrade } from "@e280/comrade";
export const setupWhisperHost = (events) => (Comrade.host(_shell => ({
async updateModelLoadProgress(item) {
events.onModelLoadProgress.pub(item);
},
async deliverTranscriptionChunk(chunk) {
events.onTranscriptionChunk.pub({
text: chunk.text,
timestamp: chunk.timestamp
});
},
async updateTps(value) {
events.onTpsUpdate.pub(value);
},
async updateTranscribeProgress(value) {
events.onTranscribeProgress(value);
}
})));
//# sourceMappingURL=host.js.map