The open-source AI voice studio. Clone, dictate, create.
Add 10 missing paralinguistic delivery tags to ParalinguisticInput
Margalit4cb8ad3b1ff8
diff --git a/app/src/components/Generation/ParalinguisticInput.tsx b/app/src/components/Generation/ParalinguisticInput.tsxindex d6c44210..cfa44bff 100644--- a/app/src/components/Generation/ParalinguisticInput.tsx+++ b/app/src/components/Generation/ParalinguisticInput.tsx@@ -23,9 +23,19 @@ const PARALINGUISTIC_TAGS = [{ tag: '[sniff]', label: 'sniff', emoji: '\u{1F443}' },{ tag: '[shush]', label: 'shush', emoji: '\u{1F92B}' },{ tag: '[clear throat]', label: 'clear throat', emoji: '\u{1F64A}' },+ { tag: '[angry]', label: 'angry', emoji: '\u{1F621}' },+ { tag: '[crying]', label: 'crying', emoji: '\u{1F622}' },+ { tag: '[dramatic]', label: 'dramatic', emoji: '\u{1F3AD}' },+ { tag: '[fear]', label: 'fear', emoji: '\u{1F628}' },+ { tag: '[happy]', label: 'happy', emoji: '\u{1F60A}' },+ { tag: '[narration]', label: 'narration', emoji: '\u{1F4D6}' },+ { tag: '[sarcastic]', label: 'sarcastic', emoji: '\u{1F60F}' },+ { tag: '[surprised]', label: 'surprised', emoji: '\u{1F632}' },+ { tag: '[whispering]', label: 'whispering', emoji: '\u{1F92B}' },+ { tag: '[advertisement]', label: 'advertisement', emoji: '\u{1F4E2}' },] as const;-const TAG_REGEX = /\[(laugh|chuckle|gasp|cough|sigh|groan|sniff|shush|clear throat)\]/gi;+const TAG_REGEX = /\[(laugh|chuckle|gasp|cough|sigh|groan|sniff|shush|clear throat|angry|crying|dramatic|fear|happy|narration|sarcastic|surprised|whispering|advertisement)\]/gi;// Data attribute used to identify badge spans in the DOMconst BADGE_ATTR = 'data-ptag';