UNPKG

@aituber-onair/voice

Version:

Voice synthesis library for AITuber OnAir

20 lines (19 loc) 734 B
import { ChatScreenplay } from '../types/chat'; /** * Convert text to screenplay (text with emotion) * @param text Original text (may contain emotion expressions like [happy]) * @returns Screenplay object with emotion and text separated */ export declare function textToScreenplay(text: string): ChatScreenplay; /** * Convert multiple texts to screenplay array * @param texts Text array * @returns Array of screenplay objects */ export declare function textsToScreenplay(texts: string[]): ChatScreenplay[]; /** * Convert screenplay to text with emotion * @param screenplay Screenplay object * @returns Text with emotion (e.g. [happy] Hello) */ export declare function screenplayToText(screenplay: ChatScreenplay): string;