
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@itannix/vue
Advanced tools
Vue SDK for the ItanniX Voice AI platform. Add real-time voice interactions to your Vue app with a simple composable or component.
npm install @itannix/vue
<template>
<div>
<p>Status: {{ status }}</p>
<button @click="connect" :disabled="status !== 'disconnected'">
Connect
</button>
<button @click="disconnect" :disabled="status === 'disconnected'">
Disconnect
</button>
<div v-for="(msg, i) in messages" :key="i">
<p><strong>{{ msg.role }}:</strong> {{ msg.text }}</p>
</div>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { useVoiceClient } from '@itannix/vue';
const messages = ref<Array<{ role: string; text: string }>>([]);
const { status, connect, disconnect, sendFunctionResult } = useVoiceClient({
workspaceKey: 'your-workspace-key',
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
onTranscript: (text) => {
messages.value.push({ role: 'user', text });
},
onAssistantMessage: (text, done) => {
if (done) {
messages.value.push({ role: 'assistant', text });
}
},
onFunctionCall: (name, args, callId) => {
sendFunctionResult(callId, { success: true });
},
onError: (error) => {
console.error('Connection error:', error);
}
});
</script>
<template>
<div>
<VoiceAssistant
ref="assistantRef"
workspace-key="your-workspace-key"
client-id="your-client-id"
client-secret="your-client-secret"
@status-change="handleStatusChange"
@transcript="handleTranscript"
@assistant-message="handleAssistantMessage"
/>
<p>Status: {{ status }}</p>
<button @click="assistantRef?.connect()">Connect</button>
<button @click="assistantRef?.disconnect()">Disconnect</button>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue';
import { VoiceAssistant } from '@itannix/vue';
import type { ConnectionStatus } from '@itannix/vue';
const assistantRef = ref<InstanceType<typeof VoiceAssistant> | null>(null);
const status = ref<ConnectionStatus>('disconnected');
function handleStatusChange(newStatus: ConnectionStatus) {
status.value = newStatus;
}
function handleTranscript(text: string) {
console.log('You:', text);
}
function handleAssistantMessage(text: string, done: boolean) {
if (done) console.log('Assistant:', text);
}
</script>
| Option | Type | Required | Description |
|---|---|---|---|
workspaceKey | string | Yes | Your workspace API key from workspace settings |
clientId | string | Yes | Your ItanniX client ID |
clientSecret | string | Yes | Your client secret |
serverUrl | string | No | API server URL (default: https://api.itannix.com) |
onTranscript | (text: string) => void | No | Called when user speech is transcribed |
onAssistantMessage | (text: string, done: boolean) => void | No | Called with assistant response (streaming) |
onFunctionCall | (name, args, callId) => void | No | Called when assistant invokes a function |
onError | (error: Error) => void | No | Called on connection errors |
| Property | Type | Description |
|---|---|---|
status | Ref<ConnectionStatus> | Current connection status (reactive) |
connect | () => Promise<void> | Start voice connection |
disconnect | () => void | End voice connection |
sendFunctionResult | (callId, result) => void | Send function call result back to assistant |
| Prop | Type | Required | Description |
|---|---|---|---|
workspaceKey | string | Yes | Your workspace API key from workspace settings |
clientId | string | Yes | Your ItanniX client ID |
clientSecret | string | Yes | Your client secret |
serverUrl | string | No | API server URL |
| Event | Payload | Description |
|---|---|---|
statusChange | ConnectionStatus | Connection status changed |
transcript | string | User speech transcribed |
assistantMessage | { text: string, done: boolean } | Assistant response (streaming) |
functionCall | { name: string, args: object, callId: string } | Function call from assistant |
error | Error | Connection or runtime error |
Access via template ref:
<VoiceAssistant ref="assistantRef" ... />
<script setup>
const assistantRef = ref();
// Connect
assistantRef.value?.connect();
// Disconnect
assistantRef.value?.disconnect();
// Send function result
assistantRef.value?.sendFunctionResult(callId, { success: true });
// Get status
console.log(assistantRef.value?.status);
</script>
MIT
FAQs
Vue SDK for ItanniX Voice AI platform
We found that @itannix/vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.