Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run Chinese forced alignment model #28

Open
Frankalexej opened this issue Sep 27, 2022 · 4 comments
Open

Unable to run Chinese forced alignment model #28

Frankalexej opened this issue Sep 27, 2022 · 4 comments

Comments

@Frankalexej
Copy link

May I possibly ask why there is always index error when I run the Chinese forced alignment model?
The snapshot is as follows. Thank you very much!
image

@lingjzhu
Copy link
Owner

Does this code example work?
charsiu = charsiu_forced_aligner(aligner='charsiu/zh_w2v2_tiny_fc_10ms',lang='zh') charsiu.align(audio='./local/SSB00050015_16k.wav',text='经广州日报报道后成为了社会热点。')

Are you using a Chinese model and specify lang='zh'? Could you show the full code and, if possible, share the audio?

@Frankalexej
Copy link
Author

Thank you so much for your help! I compared the code you provided here and the original code and found that it was because I copied the model code from the tutorial 1.1, where the forced alignment model for Chinese was given the English model path. Probably that's a typo? I changed to this code charsiu = charsiu_forced_aligner(aligner='charsiu/zh_w2v2_tiny_fc_10ms',lang='zh') and it worked.
Thank you again!
image

@lingjzhu
Copy link
Owner

Glad to hear that it worked out!

@congzhang365
Copy link
Collaborator

Thanks for spotting the typo and letting us know! I've updated the tutorial.

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

No branches or pull requests

3 participants