MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / token_window

Function token_window

tests/vibevoice/vibevoice_python_warm_bench.py:222–227  ·  view source on GitHub ↗
(tokens: list[int])

Source from the content-addressed store, hash-verified

220
221
222def token_window(tokens: list[int]) -> dict[str, Any]:
223 return {
224 "head": tokens[:128],
225 "tail": tokens[-32:],
226 "count": len(tokens),
227 }
228
229
230def extract_audio(outputs: Any, index: int = 0) -> np.ndarray:

Callers 2

run_onceFunction · 0.85
run_batchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected