@ariontalk/widget
v0.1.1
Published
Drop-in voice AI widget for any website — powered by Gemini Live with interactive highlights
Downloads
244
Maintainers
Readme
@ariontalk/widget
Drop-in voice AI widget for any website — powered by Gemini Live with interactive highlights.
CDN (quickest)
<ariontalk-widget lang="en" settings></ariontalk-widget>
<script type="module" src="https://cdn.jsdelivr.net/npm/@ariontalk/widget@latest/dist/ariontalk.js"></script>Install
npm install @ariontalk/widgetUsage
<ariontalk-widget
lang="en"
engine="gemini"
token-server="https://your-server.com/api/token"
settings
interactive-highlights
></ariontalk-widget>
<script type="module">
import '@ariontalk/widget';
</script>Attributes
| Attribute | Default | Description |
|-----------|---------|-------------|
| lang | "en" | Language code (auto, en, es, ja, fr, …) |
| engine | "local" | "local" (browser) or "gemini" (cloud) |
| token-server | — | Token endpoint URL (required for Gemini) |
| position | "bottom-right" | "bottom-right" or "bottom-left" |
| theme | "light" | "light" or "dark" |
| settings | false | Show settings panel |
| interactive-highlights | false | Scroll-and-highlight during speech (Gemini) |
| log-level | "disabled" | "disabled" | "error" | "warning" | "info" | "debug" |
Barge-in plugins
import '@ariontalk/widget';
import { SileroVadDetector } from '@ariontalk/plugin-silero-vad';
const widget = document.querySelector('ariontalk-widget');
widget.bargeInPlugins = [
{ id: 'silero-vad', label: 'Smart VAD', create: () => new SileroVadDetector() },
];Events
at-session-start— fired when a voice session beginsat-session-end— fired when a voice session ends (includesdetail.duration)
License
MIT — see LICENSE
