feat(lyric): 支持解析本地 LRC 歌词中的音译#559
Merged
Merged
Conversation
根据已解析歌词中是否有时间相同来判断,因此最先遍历的歌词行会被作为主歌词 若具有翻译或音译,则判断主歌词中是否有翻译,若没有则将此句作为翻译,音译同理 如果出现时间相同的歌词行,第一行会被作为主歌词,第二行翻译,第三行音译,其余舍去
imsyy
approved these changes
Nov 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根据已解析歌词中是否有时间相同来判断,因此最先遍历的歌词行会被作为主歌词
若具有翻译或音译,则判断主歌词中是否有翻译,若没有则将此句作为翻译,音译同理
如果出现时间相同的歌词行,第一行会被作为主歌词,第二行翻译,第三行音译,其余舍去