MCPcopy Create free account
hub / github.com/FireRedTeam/FireRedTTS2 / process_text_list

Function process_text_list

fireredtts2/utils/spliter.py:279–289  ·  view source on GitHub ↗
(text_list)

Source from the content-addressed store, hash-verified

277
278
279def process_text_list(text_list):
280 new_text_list = []
281 for text in text_list:
282 speaker = text[:4]
283 # print("---speaker:", speaker)
284 assert speaker in ["[S1]", "[S2]", "[S3]", "[S4]"]
285 result = process_text(text=text)
286 # print("---result:\n", result, len(result))
287 for chunk in result:
288 new_text_list.append(speaker + chunk)
289 return new_text_list

Callers 2

generate_dialogueMethod · 0.90
generate_dialogueMethod · 0.90

Calls 1

process_textFunction · 0.85

Tested by

no test coverage detected