@charivo/stt
v0.3.2
Published
STT manager and browser adapters for Charivo
Maintainers
Readme
@charivo/stt
Stateful STT manager and recording helper for Charivo.
Install
pnpm add @charivo/sttUsage
import { createSTTManager } from "@charivo/stt";
import { createRemoteSTTTranscriber } from "@charivo/stt/remote";
const sttManager = createSTTManager(
createRemoteSTTTranscriber({ apiEndpoint: "/api/stt" }),
);
await sttManager.start({ language: "ko" });
const text = await sttManager.stop();Exports
STTManagerImplcreateSTTManager(transcriber)MediaRecorderHelper
Event Bridge
STTManager accepts an emit-only event bridge through setEventEmitter(...).
It emits STT lifecycle and error events back into core, and does not subscribe
through the shared event bus.
When connected, the manager emits:
stt:startstt:stopstt:error
