multilingual tts segmentation

    1

    Fix bilingual TTS errors by segmenting text, stripping markdown, and protecting quoted spans before synthesis.

    Free

    2 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    About this skill

    Voice assistants and language tutors often mangle bilingual text by pronouncing Markdown syntax, misclassifying languages, or using the wrong accent for quoted phrases. This skill provides the logic and order of operations to correctly segment multilingual text before it reaches the synthesis engine.

    What it does

    • Markdown Stripping: Removes asterisks and syntax server-side to prevent voices from literally saying "asterisk asterisk".
    • Protected Segmentation: Ensures quoted spans remain unbreakable so punctuation inside quotes doesn't cause premature sentence splitting.
    • Phonetic Cleaning: Identifies and removes hallucinated phonetic symbols (like /k/) that models invent but TTS engines misread.
    • Language Classification: Applies refined rules for elisions and stop-words to prevent false language switching in multilingual voices.
    • Silence Injection: Logic for joining synthesized segments with specific timing to prevent audible "hard cuts" between voices.

    How it works

    1. Pre-process: Strip all markdown and pseudo-phonetic slashes from the model output.
    2. Segment: Split the text into sentences while treating quoted spans as atomic, unbreakable units.
    3. Classify & Merge: Identify the language of each chunk and merge adjacent chunks of the same language.
    4. Clean & Synthesize: Drop chunks containing no alphanumeric characters and send remaining segments to their respective voices.

    Frameworks & tools

    The skill provides logic applicable to any TTS pipeline (Azure Neural, AWS Polly, OpenAI Audio) and includes scripts/measure_voice.js for duration-based defect testing.

    Why this beats prompting it yourself

    Prompting a model to "not use markdown" is not a guarantee, as models frequently ignore these constraints in edge cases. This skill implements the server-side safety nets and segmentation logic required to fix defects that prompts alone cannot resolve.

    Use cases

    • Building a language tutor that switches between a native and target language.
    • Developing a bilingual assistant that quotes foreign text without changing accents.
    • Fixing "stuttering" or "spelling out" behaviors in production TTS systems.

    Known limitations

    Does not include voice cloning or model training logic. The phonetic slash removal is narrowly scoped to avoid breaking dates or "and/or" constructions.

    Does not support voice cloning or model training. Phonetic stripping is limited to short spans to avoid breaking dates or common slashes.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 29 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Network Access
    Listed29 days ago

    What's inside

    Frequently Asked Questions

    This skill acts as a pre-processing middleware that cleans and segments text before it reaches your TTS engine, specifically fixing issues like voices reading markdown syntax or using the wrong accent for foreign quotes.

    Yes, the logic is engine-agnostic and designed to work with any API-based synthesis tool, including Azure Neural, AWS Polly, OpenAI Audio, and ElevenLabs.

    You will receive the core segmentation and cleaning logic, the specific order of operations for multilingual handling, and the `scripts/measure_voice.js` tool for testing audio duration defects.

    While prompts often fail in edge cases, this skill provides a server-side safety net that programmatically strips markdown and protects quoted text, ensuring 100% consistency that prompting alone cannot guarantee.

    The skill is designed to handle common bilingual scenarios, such as language tutors or assistants, by using refined rules for elisions and stop-words to prevent incorrect language switching.

    It does not include voice cloning or model training; it is strictly focused on the text-processing and segmentation logic required to optimize existing voices.

    New in Agents & Orchestration

    Free