code wiki / (root) / nx_phoneme_synth_gate.nx

nx_phoneme_synth_gate.nx

buildroot/runtime/nx_phoneme_synth_gate.nx

7906 B179 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_phoneme_synth_gate.nx -- REFEREE for VOICE-CLONE-001 rung 5a (articulation). Renders a 3-phoneme "word" /a/ -> /i/ -> /u/ and proves the engine ARTICULATES (says a sequence) rather than sustaining one sound: ARTICULATION : the 3 segments must be SPECTRALLY DISTINCT (large pairwise voiceprint distance) -> the voice is moving through sounds. NEG-CONTROL : a constant "word" /a/ /a/ /a/ must have the 3 segments NEARLY IDENTICAL (small distance) -> the variation in the real word comes from the PHONEMES, not from synthesis noise. DETERMINISM : the same sequence renders byte-equal (segment dist == 0). VOICED/UNVOICED : a mixed word /a/(voiced) /s/(unvoiced) /u/(voiced) must read voiced, UNVOICED, voiced (vp frame-count, via nx_pitch). SPEAKER : a second speaker's phoneme inventory (child formants) reading the SAME word differs from speaker 1 AND still articulates. Every value PRINTED. Evidence -> stdout + knowledge/status/phoneme_synth_gate.log. Exit 0 GREEN / 1 RED. Sovereign x86_64 throughout. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls_x86_64.nx nx_phoneme_synth.nx nx_voiceprint.nx nx_phoneme_synth_gate.nx

imports: nx_syscalls_x86_64.nxnx_phoneme_synth.nxnx_voiceprint.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_openat_append gp gn setph nx_phoneme_synth _ph_lcg seg_vp nx_voiceprint_extract nx_pitch_f0 _px_i16 nx_pitch_is_voiced nx_lpc_autocorr nx_lpc_levinson _q30_mul _vp_i64 nx_voiceprint_distance

structs

none

consts

23const DUR: i64 = 1200
24const CAP: i64 = 4096

functions

26func gp(logfd: i64, s: *u8) -> i64
called by 1: main
33func gn(logfd: i64, v: i64) -> i64
called by 1: main
49func setph(seq: *i64, idx: i64, a1: i64, a2: i64, a3: i64, v: i64, dur: i64) -> i64
called by 1: main
61func seg_vp(pcm: *u8, segstart: i64, vp: *i64) -> i64
called by 1: main calls 1: nx_voiceprint_extract
66func main() -> i64