diff --git a/README.md b/README.md index da97e44..5c82ec5 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ The starter project includes: - Supports more than 50 models from OpenAI, Cartesia, Deepgram, and other providers - Access to a wide range of other models, including [Realtime models](https://docs.livekit.io/agents/models/realtime), through extensive plugin ecosystem - Expressive mode, enabled by default: the framework injects the TTS provider's markup guide into the LLM prompt, so the model emits inline delivery tags (emotion, pacing, non-verbal sounds) that the TTS renders and the transcript never shows +- [Keyterms](https://docs.livekit.io/agents/models/stt/keyterms/), enabled by default: static terms bias the STT toward your own names, brands, and jargon, and automatic detection picks up distinctive spellings from the live conversation - Eval suite based on the LiveKit Agents [testing & evaluation framework](https://docs.livekit.io/agents/start/testing) - [LiveKit Turn Detector](https://docs.livekit.io/agents/logic/turns/turn-detector/), an end-of-turn model that listens to the user's audio directly, combining semantic understanding with acoustic cues for state-of-the-art accuracy across 14 languages - [Background voice cancellation](https://docs.livekit.io/transport/media/noise-cancellation/) diff --git a/src/main.ts b/src/main.ts index 81e6d4c..363b807 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,6 +20,16 @@ export default defineAgent({ language: 'en', }), + // Keyterms bias the STT toward distinctive words it would otherwise misspell. + // List your own names, brands, and jargon in `keyterms`. Detection additionally + // extracts terms from the live conversation, such as a caller's name, and applies + // them once the transcript corroborates the spelling. + // See more at https://docs.livekit.io/agents/models/stt/keyterms/ + keytermsOptions: { + keyterms: ['LiveKit'], + keytermDetection: { enabled: true }, + }, + // Text-to-speech (TTS) is your agent's voice, turning the LLM's text into speech that the user can hear // See all available models as well as voice selections at https://docs.livekit.io/agents/models/tts/ tts: new inference.TTS({