rakuri255 / UltraSinger

AI based tool to convert vocals lyrics and pitch from music to autogenerate Ultrastar Deluxe, Midi and notes. It automatic tapping, adding text, pitch vocals and creates karaoke files.
MIT License
273 stars 24 forks source link

Convert option for none nativ speaker e.g Japanse to romaji #34

Open rakuri255 opened 1 year ago

rakuri255 commented 1 year ago
          FYI: Managed to hotfix the issue by adding "unidecode" lib and normalizing accent characters before the regex
def download_from_youtube():
    title = get_youtube_title(settings.input_file_path)
    title = unidecode(title)
    basename_without_ext = re.sub('[^A-Za-z0-9. _-]+', '', title).strip()

https://stackoverflow.com/questions/517923/what-is-the-best-way-to-remove-accents-normalize-in-a-python-unicode-string

Originally posted by @kubalakowski in https://github.com/rakuri255/UltraSinger/issues/30#issuecomment-1565040179

Idea: Sing songs you cant read. E.g. japanse letters

rakuri255 commented 1 year ago

@kubalakowski thanks for the idea + the code!

eadmaster commented 6 months ago

i am using cutlet currently for this.

this has to be done before the lines are word-splitted to get the correct transliteration.

eadmaster commented 6 months ago

for Japanese i've just made a script to convert ass subtitles to romaji.