MCPcopy
hub / github.com/babysor/MockingBird / preprocess_transcript_aishell3

Function preprocess_transcript_aishell3

synthesizer/preprocess_transcript.py:1–9  ·  view source on GitHub ↗
(dict_info, dict_transcript)

Source from the content-addressed store, hash-verified

1def preprocess_transcript_aishell3(dict_info, dict_transcript):
2 for v in dict_transcript:
3 if not v:
4 continue
5 v = v.strip().replace("\n","").replace("\t"," ").split(" ")
6 transList = []
7 for i in range(2, len(v), 2):
8 transList.append(v[i])
9 dict_info[v[0]] = " ".join(transList)
10
11
12def preprocess_transcript_magicdata(dict_info, dict_transcript):

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected