@dqnamo/voicecontrol
v0.0.1
Published
Composable primitives for building voice-controlled web interfaces.
Readme
@dqnamo/voicecontrol
Composable primitives for building voice-controlled web interfaces.
This is the first experimental release. The React provider, action component, transcription transport, and Jev decision adapter are under active development.
import { defineVoiceAction, voiceControlAttributes } from "@dqnamo/voicecontrol";
const action = defineVoiceAction({
id: "todo.complete",
description: "Complete the selected task",
execute: ({ transcript }) => {
console.log("Run from voice command:", transcript);
},
});
const attributes = voiceControlAttributes(action);