Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Universal Streaming speech-to-text via AssemblyAI’s v3 WebSocket API.
ws
npm install getpatter
ASSEMBLYAI_API_KEY
apiKey
import { AssemblyAISTT } from "getpatter"; const stt = new AssemblyAISTT(); // reads ASSEMBLYAI_API_KEY const stt2 = new AssemblyAISTT({ apiKey: "aa_..." });
// npx tsx example.ts import { Patter, Twilio, AssemblyAISTT, ElevenLabsTTS } from "getpatter"; const phone = new Patter({ carrier: new Twilio(), phoneNumber: "+15550001234" }); const agent = phone.agent({ stt: new AssemblyAISTT(), // ASSEMBLYAI_API_KEY from env tts: new ElevenLabsTTS({ voiceId: "rachel" }), // ELEVENLABS_API_KEY from env systemPrompt: "You are a helpful assistant.", }); await phone.serve({ agent });
AssemblyAISTT.forTwilio("aa_...")