Skip to content

Accompanist Lyrics Core

The core logic library for parsing, manipulating, and exporting lyrics.

This module is a Kotlin Multiplatform library that provides:

  • Universal Parsing: Support for LRC (.lrc), Kugou KRC (.krc), and TTML (Apple Music) formats.
  • Unified Model: A standardized SyncedLyrics model that abstracts away format differences.
  • Smart Detection: AutoParser and LyricsFormatGuesser to automatically identify and parse lyrics.
  • Exporting: Convert your lyrics back to standard formats.

Features

  • Zero Android Dependency: Pure Kotlin, runs on JVM, Android, iOS, Wasm, etc.
  • High Performance: Optimized parsing for large files.
  • Extensible: Easy to add new parsers and exporters.

Installation

Add the dependency to your version catalog or build.gradle.kts:

dependencies {
     implementation("com.mocharealm.accompanist:lyrics-core:VERSION")
}

Maven Central

Replace VERSION with the latest version from Maven Central.