diff --git a/js/common/view/AutoHearControl.ts b/js/common/view/AutoHearControl.ts index 4d716a6..6944726 100644 --- a/js/common/view/AutoHearControl.ts +++ b/js/common/view/AutoHearControl.ts @@ -21,7 +21,6 @@ import ToggleSwitch from '../../../../sun/js/ToggleSwitch.js'; import numberSuiteCommon from '../../numberSuiteCommon.js'; import NumberSuiteCommonStrings from '../../NumberSuiteCommonStrings.js'; import NumberSuiteCommonConstants from '../NumberSuiteCommonConstants.js'; -import NumberSuiteCommonSpeechSynthesisAnnouncer from './NumberSuiteCommonSpeechSynthesisAnnouncer.js'; import Property from '../../../../axon/js/Property.js'; const MISSING_VOICE_WARNING_TEXT_OPTIONS: TextOptions = { @@ -33,7 +32,7 @@ export default class AutoHearControl extends Node { public constructor( autoHearEnabledProperty: Property, - speechSynthesisAnnouncer: NumberSuiteCommonSpeechSynthesisAnnouncer, + hasVoiceProperty: TReadOnlyProperty, labelStringProperty: TReadOnlyProperty, descriptionStringProperty: TReadOnlyProperty, visible = true @@ -79,7 +78,7 @@ export default class AutoHearControl extends Node { spacing: 14, align: 'center', visibleProperty: new DerivedProperty( - [ autoHearEnabledProperty, speechSynthesisAnnouncer.hasVoiceProperty ], + [ autoHearEnabledProperty, hasVoiceProperty ], ( autoHearEnabled, hasVoice ) => autoHearEnabled && !hasVoice ) } );