Repository navigation
feat(resynthesis): add low-latency mode without formant overlap - #85
Closed
google-labs-stitch[bot] wants to merge 1 commit into
Closed
google-labs-stitch[bot] wants to merge 1 commit into
google-labs-stitch[bot] wants to merge 1 commit into
Conversation
- Export LatencyMode and add latency_mode to ResynthesisConfig. - Skip the overlap buffer and LPC formants in LatencyMode::LowLatency. - Keep input_period separate from the Choir lead periods. - Reset the audio histories when latency_mode changes. - Return 50 or 1,593 frames from the Rust and Wasm latency getters. - Update the crate documentation and README.md.
Contributor
byteland-app
deleted the
stitch/add-low-latency-mode-jm1-12956110-38d8-4677-83ab-bef997900faa
branch
November 25, 2026 08:02
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change adds
LatencyMode(Standard,LowLatency) toResynthesisConfigacross the Rust, WebAssembly and TypeScript APIs.LatencyMode(Standarddefault,LowLatency) fromsrc/resynthesis.rsandsrc/lib.rs, with"standard" | "lowLatency"TypeScript declarations.pub latency_mode: LatencyModetoResynthesisConfig(latencyModein TypeScript).overlapbuffer and LPC formants inResynthesis::process_sample,Resynthesis::render_lead,Resynthesis::tail_framesandResynthesis::formant_envelopewhenLatencyMode::LowLatencyis active.input_periodseparate fromperiodsso Choir voices keep resampled periods whileProcessor::feedbackreports raw input pitch and returnsvoiced == falseon silence.latency_modechanges viaset_configorTimedEvent.50frames inLatencyMode::LowLatencyand1,593frames inLatencyMode::StandardfromProcessor::latency_frames,Feedback::latency_framesandTunelet.latencyFrames.README.mdin ASD-STE100 Simplified Technical English.Verification
Standardparity: Verified sample-exacti16PCM output,feedback(),telemetry(),tail_frames()andformant_envelope()againstv0.3.2across Default, Choir, Harmony, Formant and effect configurations at 44.1 kHz and 48 kHz.LowLatencydelay:latency_frames(),feedback().latency_framesandTunelet.latencyFramesreturn50at 44.1 kHz and 48 kHz.dry_mix == 1.0) outputs at0frames of delay; wet impulse (dry_mix == 0.0) outputs at50frames of delay.50frames (1.13 msat 44.1 kHz and1.04 msat 48 kHz).feedback()reports raw input pitch andvoiced == falseon silence whenchoir_voices > 1andpitch_ratio != 1.0. VerifiedFormantConfigrange validation, skipped2 * sample_ratetail frames andOk(false)with zeroed slices fromformant_envelope()inLowLatency.Processor::newacross audio blocks,latency_modetransitions (set_configandTimedEvent), feedback, telemetry, reset and drain.cargo fmt --check,cargo clippy --locked --lib -- -D warnings,cargo build --locked --release,RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps,cargo package --list --locked,RUSTDOCFLAGS="-D warnings" npm run check:wasmandnpm run verify:packpassed with zero warnings.Automated PR initiated by user @byteland-app via Stitch Loop.