MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTS / replacer

Function replacer

moss_tts_delay/llama_cpp/processor.py:161–162  ·  view source on GitHub ↗
(match: re.Match)

Source from the content-addressed store, hash-verified

159 return f"{audio_start_token}{step_tokens}{audio_end_token}"
160
161 def replacer(match: re.Match) -> str:
162 return _build_block(next(lengths_iter))
163
164 return re.sub(re.escape(AUDIO_PLACEHOLDER), replacer, content)
165

Callers

nothing calls this directly

Calls 1

_build_blockFunction · 0.85

Tested by

no test coverage detected