Project Files
dist / processor.d.ts
/**
* @file processor.ts
* @description VibeVoice TTS formatting pipeline.
*
* Pipeline stages:
* 1. Try JSON input parse (structured input)
* 2. Clean input text (smart quotes, emoji, HTML, URLs, etc.)
* 3. Detect multi-speaker format or force single/multi mode
* 4. Clamp speaker IDs to valid range (1-4)
* 5. Build speaker metadata with voice/emotion annotations
* 6. Format script output
* 7. Collect warnings
*
* VibeVoice does NOT support SSML — output is plain text or script format.
* Emotion is an annotation for voice reference selection, never an inline tag.
*/
import type { VibeVoiceResult, EmotionMapping } from "./types";
/**
* Process input text through the VibeVoice formatting pipeline.
*
* @param text - The raw input text (or JSON array of speaker lines)
* @param params - Formatting parameters
* @returns A VibeVoiceResult with cleaned text, script, and speaker metadata
*/
export declare function processText(text: string, params: {
mode: "single" | "multi" | "auto";
speakers: number;
voices: ReadonlyArray<string>;
emotions: ReadonlyArray<string>;
clean: boolean;
output: "plain" | "script" | "json";
emotion_map?: EmotionMapping;
}): VibeVoiceResult;
//# sourceMappingURL=processor.d.ts.map