Skip to content

Commit

Permalink
Merge pull request #958 from lunjielee/main
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf authored Feb 2, 2025
2 parents 9666e3f + 6251965 commit af0b1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvc/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def load_audio_infer(

def format_title(title):
formatted_title = (
unicodedata.normalize("NFKD", title).encode("ascii", "ignore").decode("utf-8")
unicodedata.normalize("NFC", title)
)
formatted_title = re.sub(r"[\u2500-\u257F]+", "", formatted_title)
formatted_title = re.sub(r"[^\w\s.-]", "", formatted_title)
formatted_title = re.sub(r"[^\w\s.-]", "", formatted_title, flags=re.UNICODE)
formatted_title = re.sub(r"\s+", "_", formatted_title)
return formatted_title

Expand Down

0 comments on commit af0b1ab

Please sign in to comment.