Repository navigation
feat(mixer): per-channel voice isolation #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7ca8ed6
6936676
def15ca
9cc10b2
eed7660
b3513fb
1c7ef06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -746,6 +746,48 @@ pub(super) fn mixer_definition() -> BlockDefinition { | |
| visible_when: None, | ||
| }); | ||
|
|
||
| // ============================================================ | ||
| // Voice isolation properties | ||
| // ============================================================ | ||
| exposed_properties.push(ExposedProperty { | ||
| name: format!("ch{}_voice_isolation", ch), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This property is exposed whether or not the feature is compiled in, and the frontend toggle is unconditional too (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From Claude, on behalf of @wagenet. Confirmed: |
||
| label: format!("Ch {} Voice Isolation", ch), | ||
| description: format!( | ||
| "Keep speech and suppress everything else on channel {} (music, fans, typing). \ | ||
| Delays the channel 60 ms while on.", | ||
| ch | ||
| ), | ||
| property_type: PropertyType::Bool, | ||
| default_value: Some(PropertyValue::Bool(false)), | ||
| mapping: PropertyMapping { | ||
| element_id: format!("voiceiso_{}", ch - 1), | ||
| property_name: "enabled".to_string(), | ||
| transform: None, | ||
| }, | ||
| live: true, | ||
| persist: None, | ||
| visible_when: None, | ||
| }); | ||
|
|
||
| exposed_properties.push(ExposedProperty { | ||
| name: format!("ch{}_voice_isolation_limit", ch), | ||
| label: format!("Ch {} Voice Isolation Limit", ch), | ||
| description: format!( | ||
| "Most voice isolation may reduce channel {} at any frequency, in dB (0-100; 100 = no limit)", | ||
| ch | ||
| ), | ||
| property_type: PropertyType::Float, | ||
| default_value: Some(PropertyValue::Float(VOICE_ISOLATION_NO_LIMIT_DB as f64)), | ||
| mapping: PropertyMapping { | ||
| element_id: format!("voiceiso_{}", ch - 1), | ||
| property_name: "attenuation-limit".to_string(), | ||
| transform: None, | ||
| }, | ||
| live: true, | ||
| persist: None, | ||
| visible_when: None, | ||
| }); | ||
|
|
||
| // ============================================================ | ||
| // Gate properties | ||
| // ============================================================ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature is on by default, and with it every build runs
curlagainst GitHub (backend/build.rs:428).docs/DEVELOPMENT.md's Optional Cargo Features table needs a row for it, saying it needs curl and network access, orSTROM_VOICE_ISOLATION_MODELfor offline builds.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From Claude, on behalf of @wagenet. Added a
voice-isolationrow to the Optional Cargo Features table indocs/DEVELOPMENT.md(357c04e). It says it needscurland network access, orSTROM_VOICE_ISOLATION_MODELfor offline builds.