mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
fix(voice): stop direct input capturing microphones in stereo (#2929)
This commit is contained in:
1 parent
c2c0fdb445
commit
88038a1d5b
4 files changed
+42
-24
No files matched your search
@@ -445,6 +445,19 @@ export const VoiceTab: React.FC<VoiceTabProps> = observer(({voiceSettings, autoR
|
||||
data-flx="user.voice-tab.render-auto-gain-control-switch.switch.update-auto-gain-control"
|
||||
/>
|
||||
);
|
||||
const renderStereoMicrophoneSwitch = (dataFlx: string) =>
|
||||
stereoMicrophoneAvailable && (
|
||||
<Switch
|
||||
label={i18n._(STEREO_MICROPHONE_DESCRIPTOR)}
|
||||
description={i18n._(STEREO_MICROPHONE_DESCRIPTION_DESCRIPTOR)}
|
||||
value={isStereoMicrophoneEnabled()}
|
||||
onChange={(value) => {
|
||||
VoiceSettings.stereoMicrophone = value;
|
||||
}}
|
||||
ariaLabel={i18n._(STEREO_MICROPHONE_DESCRIPTOR)}
|
||||
data-flx={dataFlx}
|
||||
/>
|
||||
);
|
||||
const renderCustomProfile = () => (
|
||||
<div className={styles.profileSubSection} data-flx="user.voice-tab.render-custom-profile.profile-sub-section">
|
||||
{renderPttControls()}
|
||||
@@ -496,18 +509,7 @@ export const VoiceTab: React.FC<VoiceTabProps> = observer(({voiceSettings, autoR
|
||||
dataFlx="user.voice-tab.render-custom-profile.select.set-noise-suppression-method"
|
||||
data-flx="user.user-voice-tab.render-custom-profile.compact-combobox-row.set-noise-suppression-method"
|
||||
/>
|
||||
{stereoMicrophoneAvailable && (
|
||||
<Switch
|
||||
label={i18n._(STEREO_MICROPHONE_DESCRIPTOR)}
|
||||
description={i18n._(STEREO_MICROPHONE_DESCRIPTION_DESCRIPTOR)}
|
||||
value={isStereoMicrophoneEnabled()}
|
||||
onChange={(value) => {
|
||||
VoiceSettings.stereoMicrophone = value;
|
||||
}}
|
||||
ariaLabel={i18n._(STEREO_MICROPHONE_DESCRIPTOR)}
|
||||
data-flx="user.voice-tab.render-custom-profile.switch.set-stereo-microphone"
|
||||
/>
|
||||
)}
|
||||
{renderStereoMicrophoneSwitch('user.voice-tab.render-custom-profile.switch.set-stereo-microphone')}
|
||||
<Switch
|
||||
label={i18n._(VOICE_ECHO_CANCELLATION_DESCRIPTOR)}
|
||||
value={echoCancellation}
|
||||
@@ -669,6 +671,11 @@ export const VoiceTab: React.FC<VoiceTabProps> = observer(({voiceSettings, autoR
|
||||
{renderAutoGainControlSwitch()}
|
||||
</div>
|
||||
)}
|
||||
{voiceProcessingMode === 'studio' && stereoMicrophoneAvailable && (
|
||||
<div className={styles.profileSubSection} data-flx="user.voice-tab.studio-profile-sub-section">
|
||||
{renderStereoMicrophoneSwitch('user.voice-tab.studio-profile.switch.set-stereo-microphone')}
|
||||
</div>
|
||||
)}
|
||||
{voiceProcessingMode === 'studio' && pttCombo?.key && isPushToTalk && (
|
||||
<WarningAlert data-flx="user.voice-tab.warning-alert--2">
|
||||
<Trans>Push-to-talk is ignored in direct input. Switch to focused voice or custom to use it.</Trans>
|
||||
|
||||
Reference in new issue
Block a user