Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

397 B
Raw Blame
export function storyToSpans(
  tracks: { text: string; profileId?: string | null; character?: string; speed?: number | null }[],
  cast: { id: string; profileId: string | null }[],
  globalSpeed?: number | null,
): {
  title: string;
  spans: {
    voice_id: string | null;
    text: string;
    pause_ms_after: number;
    speed?: number | null;
    join?: 'continue' | 'paragraph';
  }[];
}[];