UNPKG

@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.

10 lines (9 loc) 409 B
import type { Lyric, WordTimeline } from "../types"; export type UpdateLyricArgs = { resourceID?: string; timelines?: WordTimeline[][][]; offsetSec?: number; }; export declare function updateLyric(lyric: Lyric, args: UpdateLyricArgs): Promise<Lyric>; export declare function getTimelines(lyric: Lyric): WordTimeline[][][]; export declare function getTimelinesByLine(lyric: Lyric): WordTimeline[];