wenet-e2e / wetts

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

Whether is this a bug? #207

Open DaaLiang opened 4 months ago

DaaLiang commented 4 months ago

Should a line be add after https://github.com/wenet-e2e/wetts/blob/fb37f10c1fd4ff9e10a98ad3656bca9bce1b16a5/wetts/cli/frontend.py#L80 by:

prosodys = prosodys[1:-1]

e.g. --text 今天天气很不错哟 original: 今天天气很不错哟 => sil j in1 #0 t ian1 #0 t ian1 #2 q i4 #0 h en3 #2 b u4 #1 c uo4 #0 ^ io5 #4 after fix: 今天天气很不错哟 => sil j in1 #0 t ian1 #2 t ian1 #0 q i4 #2 h en3 #1 b u4 #0 c uo4 #0 ^ io5 #4

bug from: in L63 other two tokens for BERT were added and are not considerted after

tokens = ['[CLS]'] + [str(x) for x in text] + ['[SEP]']