code wiki / (root) / nx_voice_clone_synth.nx

nx_voice_clone_synth.nx

buildroot/runtime/nx_voice_clone_synth.nx

2967 B78 linesdepth 5pulls 8 transitivereach 1 importersview sourcekind librarytopic voice
docsdependenciesstructsconstsfunctions

about

nx_voice_clone_synth.nx -- VOICE-CLONE-001 rung 2: CREATE new audio in a captured voice. Given a voiceprint (the speaker's vocal-tract filter, as averaged PARCOR) this drives that filter with a glottal source at ANY requested pitch -> voiced speech in that speaker's voice, at that pitch. This is the "create voices" half of duplicate-and-create. Because pitch is the SOURCE and identity is the FILTER, the same voiceprint can read at a low pitch, a high pitch, or sing a melody (the singing-teacher tie-in) while staying recognizably the same speaker. Pipeline (no reinvention): PARCOR k (Q30, from nx_voiceprint) --step-up recursion--> LPC predictor a (Q30) ; glottal impulse train at fs/F0 as the residual --> nx_lpc_synth(residual, a) --> i16 PCM. license_tier: ORIGINAL module: nishi-core.audio.voice_clone_synth depends: nishi-core.voice.lpc_synth, nishi-core.audio.voiceprint capability: AUDIO_VOICE_SYNTH

dependencies 3 imports · 1 importers

nx_syscalls_x86_64.nx nx_lpc_synth.nx nx_voiceprint.nx nx_voice_clone_synth.nx nx_voice_clone_synth_gate.nx

imports: nx_syscalls_x86_64.nxnx_lpc_synth.nxnx_voiceprint.nx

imported by: nx_voice_clone_synth_gate.nx

structs

none

consts

23const CS_AMP: i64 = 6000 // glottal impulse amplitude (excitation)

functions

28func _cs_stepup(vp: *i64, p: i64, a_out: *u8) -> i64
60func nx_voice_clone_synth(vp: *i64, f0_hz: i64, fs: i64,
called by 1: main calls 2: _cs_stepupnx_lpc_synth