doxa-maps/plugin-designs/rudder-voice/index.js
Doxa Maps 65c1339fb2
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Update from source aab42616
2026-09-27 08:37:20 +00:00

23 lines
1 KiB
JavaScript

/**
* rudder-voice / index.js — Bundle entry (Capability-1 single element, DESKTOP target).
*
* <rudder-voice> — private, offline, streaming voice-to-text. The UI is this bundle; the speech model
* runs in the local backend (backend/rudder-engine), started by `bun run dev` in the Plugin Studio and
* by Tauri as a sidecar in the desktop app. See rudder-voice.vue for the contract.
*
* Desktop-only: rudder-voice.meta.json declares "targets": ["desktop"]. On a plain website there is no
* local engine, so the element shows "Engine offline" instead of pretending to work.
*
* Usage (desktop shell / Plugin Studio):
* <rudder-voice profile-config='{"apiBase":"http://127.0.0.1:5193/api/rudder"}'></rudder-voice>
*/
import { defineCustomElement } from 'vue'
import RudderVoice from './rudder-voice.vue'
const RudderVoiceElement = defineCustomElement(RudderVoice)
if (typeof customElements !== 'undefined') {
if (!customElements.get('rudder-voice')) customElements.define('rudder-voice', RudderVoiceElement)
}
export default RudderVoiceElement