voicebox icon indicating copy to clipboard operation
voicebox copied to clipboard

Feature request: add pauses via code in Story

Open akademiebios opened this issue 9 months ago • 3 comments

Can you add a feature in the story mode to add pauses via code snippets as we can do it in Elevenlabs? E.g. or ... or [pause] This way we could adjust our texts to have breaks wherever we need them (and it should be easy to implement).

Maybe also an option to set the speed of the spoken text. Something like <speed="0.75" /> (for 75% of the normal speed = slower)

akademiebios avatar Feb 05 '26 23:02 akademiebios

I support this request. If you're considering adding inline narration controls, it might be worth expanding the scope beyond speed changes to support more general performance directions.

For example, instead of only supporting something like [speed], consider a small set of expressive cues such as:

  • Pauses

    • [pause]
    • [pause=2s]
  • Speaking rate

    • [rate=0.75]
  • Vocal delivery

    • [whisper]
    • [softly]
    • [emphasis]
  • Non-verbal cues

    • [sigh]
    • [clears_throat]
    • [laughs]
    • [gasps]
  • Voice quality

    • [trembling]
    • [breathless]

These map well to concepts already used in speech synthesis (e.g. SSML's <break> and <prosody>), so there are existing conventions to draw from without necessarily exposing SSML directly to users.

Even if the initial implementation only supports pauses and speaking rate, designing the syntax with future expressive narration in mind could make it easier to extend later without introducing a second markup format.

Add note:

It may also make future compatibility with SSML or other TTS backends easier if the syntax is designed with those concepts in mind.

DonRichards avatar Jul 01 '26 18:07 DonRichards

Related issues:

  • https://github.com/jamiepine/voicebox/issues/739
  • https://github.com/jamiepine/voicebox/issues/771

DonRichards avatar Jul 01 '26 19:07 DonRichards

Same note as on #870: the timeline work in #1007 doesn't cover this, and I've marked it out of scope there rather than leave it ambiguous.

That PR works at the mixer level — it can place silence between clips by moving them apart on the timeline, and right-click gives exact start/end times, so a pause between segments is achievable by hand. What it can't do is a pause inside one, which is what inline markup is for. That belongs at the text layer, before generation, not in the mix.

Worth noting for whoever picks this up: @DonRichards's point above about designing the syntax against SSML concepts from the start is the right call. Engines differ in what they support — some take natural-language delivery instructions, some take nothing — so the parser would need a per-engine capability map with graceful degradation, otherwise the markup leaks into the spoken output as literal text.

Lvigentini avatar Aug 09 '26 14:08 Lvigentini