code wiki / (root) / nx_voice_read_gate.nx

nx_voice_read_gate.nx

buildroot/runtime/nx_voice_read_gate.nx

7045 B155 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic voice
docsdependenciesstructsconstsfunctions

about

nx_voice_read_gate.nx -- REFEREE for VOICE-CLONE-001 rung 5-FUSE (voice reads words). Two parametric speakers read two words from a shared phoneme inventory: spk1 : warp 1.00, F0 120 spk2 : warp 1.20, F0 175 WORD_A = /a/ /i/ /u/ WORD_B = /u/ /i/ /a/ (same sounds, reordered) PROVES (measured via rung-1 voiceprint distance, printed): ARTICULATION : each speaker's WORD_A has 3 spectrally-distinct SEGMENTS (>1M) -> the voice reads the sequence, doesn't sustain a sound. SPEAKER IDENTITY DOMINATES CONTENT (the fuse) -- measured on the WHOLE utterance (averaging out per-phoneme context, as real speaker-ID does): same_voice = dist(spkX wordA, spkX wordB) must be SMALL diff_voice = dist(spk1 wordY, spk2 wordY) must be LARGE assert max(same_voice) * 2 < min(diff_voice) i.e. a speaker stays recognizably THEMSELVES across different words, while a different speaker reading the same word is clearly a different voice -> "this voice reads this text." Evidence -> stdout + knowledge/status/voice_read_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_voice_read.nx nx_voiceprint.nx nx_voice_read_gate.nx

imports: nx_syscalls_x86_64.nxnx_voice_read.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 wordA sethz nx_voice_read _vr_a1 _vr_cosq16 nx_phoneme_synth _ph_lcg wordB sethz ↻ 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 whole_vp nx_voiceprint_extract ↻ gn

structs

none

consts

25const DUR: i64 = 1200
26const CAP: i64 = 4096
27const WHOLE: i64 = 3600 // 3 phonemes * DUR

functions

29func gp(logfd: i64, s: *u8) -> i64
called by 1: main
36func gn(logfd: i64, v: i64) -> i64
called by 1: main
50func sethz(seq: *i64, idx: i64, f1: i64, f2: i64, f3: i64, v: i64, dur: i64) -> i64
called by 2: wordAwordB
59func seg_vp(pcm: *u8, segstart: i64, vp: *i64) -> i64
called by 1: main calls 1: nx_voiceprint_extract
64func whole_vp(pcm: *u8, vp: *i64) -> i64
called by 1: main calls 1: nx_voiceprint_extract
69func wordA(seq: *i64) -> i64
called by 1: main calls 1: sethz
75func wordB(seq: *i64) -> i64
called by 1: main calls 1: sethz
82func main() -> i64