Function getSynced

  • Retrieves synchronized (timed) lyrics for a given track.

    Example Usage:

    const syncedLyrics = await getSynced({ track_name: "The Chain", artist_name: "Fleetwood Mac" });
    

    Parameters

    • info: Query

      An object containing query parameters:

      • id: The unique identifier of the track (conditional).
      • track_name: The name of the track (conditional).
      • artist_name: The artist's name (conditional).
      • album_name: The album's name (optional).
      • duration: The song duration in milliseconds (optional).

    Returns Promise<LyricLine[] | null>

    A promise that resolves to an array of LyricLine[] objects containing synchronized lyrics or null if no lyrics are found.