You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Collect the original lyrics text and place it in the Lyric folder. The content is pure lyrics, and the file name
is consistent with the audio before the AudioSlicer slicing (i.e. the part before the file name '_' after
slicing)
lyric
├── chuanqi.txt
├── caocao.txt
└── ...
Place the cut file fragments in the wav folder. Unify the file name with the previous lyrics: [lyricName]_
xxx.wav.
If there are multiple '_' in the file name, Take the far right as the dividing line. The file name in the left
half must be the same as the lyrics file name in the previous step.
Run match_lyric.py obtains JSON and put it in the annotation folder of Minlabel.
python match_lyric.py --lyric_folder lyric --lab_folder lab_folder --json_folder json_folder --asr_rectify True
Option:
--lyric_folder str The file name corresponds to the lab prefix (before \'_\'), only pure lyrics are allowed (*.txt).
--lab_folder str Chinese characters or pinyin separated by spaces obtained from ASR (*.lab).
--json_folder str Folder for outputting JSON files.
--diff_threshold int Only display different results with n words or more.
--asr_rectify bool Trust the result of ASR (if the result of ASR hits another candidate pronunciation of a polyphonic character, it is considered a g2p error).
Open-source softwares used
zh_CN
The core algorithm source has been further tailored to the dictionary in this project.