mirror of
https://github.com/FunAudioLLM/CosyVoice.git
synced 2026-02-05 18:09:24 +08:00
update readme
This commit is contained in:
@@ -109,6 +109,10 @@ class CosyVoiceFrontEnd:
|
||||
|
||||
def text_normalize(self, text, split=True):
|
||||
text = text.strip()
|
||||
# NOTE(lyuxiang.lx) move this judgement into ttsfrd in the future
|
||||
for token in self.tokenizer.special_tokens['additional_special_tokens']:
|
||||
if token in text:
|
||||
return text if split is False else [text]
|
||||
if contains_chinese(text):
|
||||
if self.use_ttsfrd:
|
||||
texts = [i["text"] for i in json.loads(self.frd.do_voicegen_frd(text))["sentences"]]
|
||||
|
||||
Reference in New Issue
Block a user