wenet-e2e / wetts

Production First and Production Ready End-to-End Text-to-Speech Toolkit
Apache License 2.0
368 stars 57 forks source link

Android deployment issues for VITS in other languages #220

Open CriDora opened 2 weeks ago

CriDora commented 2 weeks ago

app/src/main/assets ├── frontend │ ├── final.ort │ ├── frontend.flags │ ├── g2p_en │ │ ├── README.md │ │ ├── cmudict.dict │ │ ├── model.fst │ │ └── phones.sym │ ├── lexicon │ │ ├── lexicon.txt │ │ ├── pinyin_dict.txt │ │ ├── polyphone.txt │ │ ├── polyphone_phone.txt │ │ └── prosody.txt │ ├── tn │ │ ├── zh_tn_tagger.fst │ │ └── zh_tn_verbalizer.fst │ └── vocab.txt └── vits ├── final.ort ├── phones.txt ├── speaker.txt └── vits.flags

Thank you for your open source!If I train a char-based VITS model in a language other than Chinese and English, are the contents of the above folders g2p_en, lexicon, and tn also needed? Without these files, I will get an error when deploying this model to a mobile phone: E20240908 17:31:54.229880 5984 fst.cc:93] FstHeader::Read: Bad FST header: /data/user/0/cn.org.wenet.wetts/files/ 2024-09-08 17:31:54.230 5984-5984 native cn.org.wenet.wetts E E20240908 17:31:54.230055 5984 fst.cc:93] FstHeader::Read: Bad FST header: /data/user/0/cn.org.wenet.wetts/files/ 2024-09-08 17:31:54.230 5984-5984 libc cn.org.wenet.wetts A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5984 (org.wenet.wetts), pid 5984 (org.wenet.wetts) 2024-09-08 17:31:54.342 12491-12491 DEBUG pid-12491 A Cm dline: cn.org.wenet.wetts 2024-09-08 17:31:54.342 12491-12491 DEBUG pid-12491 A pid: 5984, tid: 5984, name: org.wenet.wetts >>> cn.org.wenet.wetts <<<

pengzhendong commented 2 weeks ago

Plz comment out some code in this function: https://github.com/wenet-e2e/wetts/blob/0abb5117171b305f9150feba5d9bb1c1796088b9/runtime/android/app/src/main/cpp/wetts.cc#L56