Closed sakura657 closed 7 months ago
Thank you for this bug report! I was able to reproduce the problem you had and refactored MFA pipeline to better suit the file management convention of Amphion in PR #121. Please feel free to reopen this issue if you have any further questions!
Describe the bug
When running the preprocessing stage of FastSpeech2 within the Amphion project, an AssertionError was encountered, stating that the Montreal Forced Aligner (MFA) tools were not found at the expected path.
How To Reproduce
Steps to reproduce the behavior:
cd Amphion
, I run this command in the Amphion root path.sh egs/tts/FastSpeech2/run.sh --stage 1
to initiate the preprocessing stage.Expected behavior
The expected behavior was that the preprocessing stage would complete without errors, provided that all the necessary tools and dependencies were correctly installed and configured.
Additional context
Upon investigating the issue, it was discovered that the AssertionError was due to a file path issue in Amphion/preprocessors/ljspeech.py at line 41, which in turn was caused by the result of
os.path.exists(lexicon)
returning False at line 39. The problem was traced back to line 28, where the lexicon path should be modified tolexicon=os.path.join("text", "lexicon", "librispeech-lexicon.txt")
. After making this change, the preprocessing stage ran successfully.