jeffvli / feishin

A modern self-hosted music player.
https://feishin.vercel.app
GNU General Public License v3.0
2.46k stars 103 forks source link

Lyrics Translation and Romaji (Phonetic symbol for Japanese songs) #732

Closed DrENDzZ closed 6 days ago

DrENDzZ commented 3 weeks ago

What do you want to be added?

Lyrics Translation and Romaji (Phonetic symbol for Japanese songs)

Additional context

Some trivia thought I could think of:

  1. I've used NetEase Music. It has translation and romaji. Thus probably possible to scrap translation/romaji at the same time of the lyrics which is already written in the code, but I'm not quite sure whether it's possible to get it with the interface http://music.163.com/api/song/lyric)/api/song/lyric used in the code now. I searched the Internet, but only found information about the interface http://openapi.music.163.com/openapi/music/basic/song/lyric/get/v2.
  2. For a much more general solution (since NetEase Music is only a Chinese Music Service Provider, I don't think other language is provided), probably need integration of popular translation APIs, which if user want to use the translation feature needs to enter their API in the settings. If the API is given, then it could be adapted to translate to the language selected by the user.
  3. For the Romaji part, I found a library called WanaKana or Kuroshiro, is precisely a convertor for Japanese to Romaji and other notations. There could be two buttons on the lyrics page meaning enable/disable light/dark translation and romaji.

    Reference

  4. The new and the only NetEase API I could find about get lyrics on the official developer website
  5. An already done solution for Lyrics Get, API Translation, Romaji Converter, etc. But in C#
  6. Repo of WanaKana, Javascript library for detecting and transforming between Hiragana, Katakana, and Romaji Preview A coarse draft UI preview I'm thinking of about the lyrics page

Is this a server-specific feature? (e.g. Jellyfin only)