phetsims / tambo

library containing code to support sonification of PhET simulations
MIT License
2 stars 4 forks source link

Add support for reducing output while Voicing is announcing #167

Closed jessegreenberg closed 1 year ago

jessegreenberg commented 2 years ago

This came up recently in https://github.com/phetsims/quadrilateral/issues/185. Design would like sound to reduce its output while SpeechSynthesisAnnouncer is speaking content.

SpeechSynthesisAnnouncer has startSpeakingEmitter and endSpeakingEmitter that we could add listeners to to update the global volume. @jbphet do you have any thoughts about how to support this in tambo?

jbphet commented 1 year ago

@jessegreenberg - I implemented ducking in https://github.com/phetsims/quadrilateral/issues/185 and https://github.com/phetsims/tambo/issues/172 and it seems to be working well so far. This issues seems like a duplicate. Is it, and can it be closed?

jessegreenberg commented 1 year ago

Yep, thanks!