Skip to content

Conversation

@Voltini
Copy link
Contributor

@Voltini Voltini commented Jan 14, 2024

Hi, I added a new optional argument to set the language of the lyrics whihc relies on the pyphen library. The change comes with a new attribute in the Text class that specifies the language. the attribute is only used in the Word class so I'm not very sure about the implementation.

@Voltini Voltini marked this pull request as ready for review January 14, 2024 20:19
"yohane = Yohane(vocals_extractor)\n",
"yohane.load_song(Path(song_filename))\n",
"yohane.load_lyrics(lyrics_area.value)\n",
"yohane.load_lyrics(lyrics_area.value, language=\"jp\")\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it a @param variable

class _Text:
raw: str

language: str
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
language: str
language: str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants