@ioris/core
Version:
This package provides the core functionality for the [@ioris](https://www.npmjs.com/search?q=%40ioris) ecosystem for managing music lyrics with time synchronization.
17 lines (16 loc) • 589 B
TypeScript
import type { WordTimeline } from "../Constants";
import type { Paragraph } from "../types";
export type CreateParagraphArgs = {
position: number;
timelines: WordTimeline[][];
lineTokenizer?: (lineArgs: {
position: number;
timelines: WordTimeline[];
}) => Promise<Map<number, {
position: number;
timelines: WordTimeline[];
jointNearWord?: boolean;
}>>;
paragraphTokenizer?: (timelines: WordTimeline[][]) => Promise<WordTimeline[][]>;
};
export declare function createParagraph(args: CreateParagraphArgs): Promise<Paragraph>;