Project Files
dist / types.js
"use strict";
/**
* @file types.ts
* @description Type definitions for vibevoice-tts formatting plugin.
*
* VibeVoice TTS has NO native SSML support. Output is plain text
* in a structured multi-speaker script format. Emotion is conveyed
* via voice reference selection, not inline tags.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.EXPRESSION_TAG_REGEX = exports.KNOWN_EXPRESSION_TAGS = void 0;
// ---------------------------------------------------------------------------
// VibeVoice Expression Tags — OPEN SYSTEM
// ---------------------------------------------------------------------------
/**
* VibeVoice expression tags are OPEN — any <tag> pattern is preserved.
* The model can invent new expressions freely: <sing>, <roar>, <whispers>,
* <coughs>, <gasps>, <clears throat>, etc.
*
* KNOWN tags (documented from real scripts):
* <laughs>, <giggles>, <chuckles>, <sighs>, <sniffs>,
* <coughs>, <gasps>, <groans>, <whimpers>, <screams>,
* <cries>, <sobbing>, <yawns>, <clears throat>,
* <inhales>, <exhales>, <pause>, <smacks lips>,
* <clicks tongue>, <gulps>, <swallows>, <purrs>,
* <hisses>, <growls>, <roars>, <whistles>,
* <humming>, <singing>, <singing softly>, <singing loudly>,
* <singing quietly>, <singing happily>, <singing sadly>,
* <singing angrily>, <singing excitedly>, <singing nervously>
*
* But ANY <word> or <phrase with spaces> is valid and will be preserved.
*/
exports.KNOWN_EXPRESSION_TAGS = [
"laughs",
"giggles",
"chuckles",
"sighs",
"sniffs",
"coughs",
"gasps",
"groans",
"whimpers",
"screams",
"cries",
"sobbing",
"yawns",
"clears throat",
"inhales",
"exhales",
"pause",
"smacks lips",
"clicks tongue",
"gulps",
"swallows",
"purrs",
"hisses",
"growls",
"roars",
"whistles",
"humming",
"singing",
"singing softly",
"singing loudly",
"singing quietly",
"singing happily",
"singing sadly",
"singing angrily",
"singing excitedly",
"singing nervously",
];
/**
* Regex matching VibeVoice expression tags: <word> or <phrase with spaces>.
* Used to preserve expression tags during text cleaning.
*/
exports.EXPRESSION_TAG_REGEX = /<([a-zA-Z][a-zA-Z0-9\s-]*)>/g;
//# sourceMappingURL=types.js.map