Cartesia STT
Streaming speech-to-text using Cartesia’sink-whisper model. Ported from LiveKit Agents (Apache 2.0) — uses ws, no vendor SDK required.
Streaming speech-to-text via Cartesia’s ink-whisper model.
ink-whisper model. Ported from LiveKit Agents (Apache 2.0) — uses ws, no vendor SDK required.
import { CartesiaSTT } from "getpatter";
const stt = new CartesiaSTT("csk_...", { language: "en" });
stt.onTranscript((t) => console.log(t.text, t.isFinal, t.confidence));
await stt.connect();
stt.sendAudio(pcmBuffer); // 16 kHz PCM s16le
// ...
stt.close();