Function parseLocalLyrics

  • Parses song lyrics into a structured format by removing metadata tags and separating lines.

    Example Input:

    [00:27.93] Listen to the wind blow
    [00:30.88] Watch the sun rise

    Example Output: { synced: [{ text: "Listen to the wind blow", startTime: 27930 }, { text: "Watch the sun rise", startTime: 30880 }], unsynced: [], karaoke: null }

    Parameters

    • lyrics: string

      The raw lyrics string with optional tags and timestamps

    Returns ParsedLyrics

    A ParsedLyrics object containing structured lyric data