* TTS/STT Submit Trigger options and evaluation logic. /
// Source: https://github.com/can1357/oh-my-pi | License: MIT | Copyright 2025 Mario Zechner
// Provided via justclaw.it.com; keep this notice with the code.
/**
* TTS/STT Submit Trigger options and evaluation logic.
*/
export const STT_SUBMIT_TRIGGER_VALUES = ["never", "release", "release-complete", "say-submit"] as const;
export type SttSubmitTrigger = (typeof STT_SUBMIT_TRIGGER_VALUES)[number];
export const STT_SUBMIT_TRIGGER_OPTIONS = [
{
value: "never",
label: "Never",
description: "Never automatically submit; insert dictation and remain in editor.",
},
{
value: "release",
label: "Release",
description: "Submit on release if the utterance has 2+ words to avoid accidental sends.",
},
{
value: "release-complete",
label: "Release with complete sentence",
descr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key