Feat/expressive tags#108
Open
willwade wants to merge 1 commit into
Open
Conversation
39e3efd to
7bd228f
Compare
Add [laugh], [sigh], [cough], [gasp], etc. as first-class SpeechMarkdown elements. These represent non-verbal sounds distinct from emotional styles like [cheerful] or [excited]. - Grammar: 52 expressive keywords (laugh, sigh, cough, gasp, giggle, etc.) - W3c/Text/ElevenLabs formatters: preserve as [tag] literal text - Other formatters: silently strip (no native support) - 11 new tests covering multi-tag, edge cases, no-conflict with breaks This enables the pipeline: SpeechMarkdown → SSML with [laugh] preserved → stripSSML → processAudioTags Each engine in js-tts-wrapper then maps [tags] to its native format.
7bd228f to
24e1b6b
Compare
Contributor
Author
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A bunch of these new ai models support expressive elements for non verbal sounds. I think this is the right way of dealing with this but not sure. So this pr ;
Adds [laugh], [sigh], [cough], [gasp], etc. as SpeechMarkdown elements. These represent non-verbal sounds distinct from emotional styles like [cheerful] or [excited].
Grammar: 52 expressive keywords (laugh, sigh, cough, gasp, giggle, etc.)
W3c/Text/ElevenLabs formatters: preserve as [tag] literal text
Other formatters: silently strip (no native support)
11 new tests covering multi-tag, edge cases, no-conflict with breaks