API
Documentation
Documentation
Section titled “Documentation”Packages
Section titled “Packages”| Package | Description |
|---|---|
| @ottervoice/core | Platform-agnostic core for OtterVoice: VoiceSession, state machine, provider router, events, and mock providers. |
| @ottervoice/protocol | JSON wire protocol for OtterVoice sessions — encode/parse/validate session events for native (Swift/Kotlin) and cross-process clients. |
| @ottervoice/provider-azure-speech | Azure Cognitive Services TTS provider for OtterVoice (REST, SSML). |
| @ottervoice/provider-deepgram | Deepgram streaming ASR provider for OtterVoice (WebSocket). |
| @ottervoice/provider-elevenlabs | ElevenLabs streaming ASR provider for OtterVoice (WebSocket). |
| @ottervoice/provider-openrouter | OpenRouter text/audio LLM, speech-to-text and text-to-speech providers for OtterVoice. |
| @ottervoice/provider-utils | Shared building blocks for OtterVoice providers: token broker, HTTP error mapping, SSE parsing. |
| @ottervoice/runtime-node | Node.js runtime adapter for OtterVoice: fetch/WebSocket network, stream-based audio I/O, console logger. |
| @ottervoice/runtime-react-native | React Native (Expo) runtime adapter for OtterVoice: recording capture and sound playback. |
| @ottervoice/runtime-web | Web runtime adapter for OtterVoice: getUserMedia + MediaRecorder capture, HTMLAudioElement playback, fetch/WebSocket network. |