Installation
- JavaScript
- Python
WebSocket). Browser apps play audio with the Web Audio API. Current version: 1.6.0.Credentials
Create an API key at app.lokutor.com and keep it on the server:VoiceAgentClient fetches one before every connection through its auth option. See Secure browser setup.
Clients
Discovery helpers read the voices, languages and limits without a key.
Platform notes
- Browser: the microphone and
AudioContextneed a user gesture (a click). See Browser Setup. - Node.js: needs Node.js 22+. For microphone and speaker, install
speakerandnode-record-lpcm16and useNodeAudioManager. See Node.js Setup. - Python: local audio uses PyAudio, installed with
lokutor[audio].
Reference
- JavaScript API Reference
- Python API Reference
- Source and examples: github.com/lokutor-ai/lokutor-sdk (
js/examples,python/examples)