Skip to content

Commit

Permalink
Update frontend.py
Browse files Browse the repository at this point in the history
# NOTE(xcsong): 和默认参数不一致时,必须重新构图,要重新构图请务必指定 `overwrite_cache=True`
#               When the parameters differ from the defaults, it is mandatory to re-compose. To re-compose, please ensure you specify `overwrite_cache=True`.

https://github.com/wenet-e2e/WeTextProcessing
  • Loading branch information
v3ucn authored Dec 19, 2024
1 parent d95aaea commit 5627ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosyvoice/cli/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self,
'failed to initialize ttsfrd resource'
self.frd.set_lang_type('pinyinvg')
else:
self.zh_tn_model = ZhNormalizer(remove_erhua=False, full_to_half=False)
self.zh_tn_model = ZhNormalizer(remove_erhua=False, full_to_half=False,overwrite_cache=True)
self.en_tn_model = EnNormalizer()

def _extract_text_token(self, text):
Expand Down

0 comments on commit 5627ade

Please sign in to comment.