diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index a75f3c8f828de5b449ec46bef0d2ed610a8ca337..ac4dfebe226ff5a05de3dd832d7e641f5c2e323e 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -142,9 +142,17 @@ class UIRoot extends Component { setTimeout(() => this.setState({ tonePlaying: false }), 2000); }; - playTone(); - const toneInterval = setInterval(playTone, 5000); - this.setState({ toneInterval, entryStep: ENTRY_STEPS.audio_setup }); + // Delay initial tone slightly so we don't always hear it. + setTimeout(() => { + if (this.state.entryStep === ENTRY_STEPS.audio_setup) { + playTone(); + + const toneInterval = setInterval(playTone, 5000); + this.setState({ toneInterval }); + } + }, 2500); + + this.setState({ entryStep: ENTRY_STEPS.audio_setup }); } fetchMicDevices = async () => {