Files
orpheus-tts/main.py
Alex 16aa526656 Fix SNAC code offset: subtract per-layer offset (position*4096)
SNAC has 3 codebook layers, each 4096 entries. Token position within
the group of 7 determines which layer: pos 0 = L1 (offset 0),
pos 1-2 = L2 (offset 4096), pos 3-6 = L3 (offset 8192).
Without this, codes exceeded 4096 and caused index-out-of-range in SNAC.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 16:04:54 -05:00

22 KiB