Just noticed while working on https://github.com/phetsims/utterance-queue/issues/46. I don't think adding the same Utterance to multiple UtteranceQueues will work with the implementatoin of annoumcenetCompleteEmitter and priorityProperty.
const myUtterance = new Utterance( { alert: 'This is a test alert' });
descriptionUtteranceQueue.addToBack( myUtterance );
voicingUtteranceQueue.addToBack( myUtterance );
When one Announcer emits the announcementCompleteEmitter listeners on the utterancePriorityListenerMaps will be removed from both queues...
Just noticed while working on https://github.com/phetsims/utterance-queue/issues/46. I don't think adding the same Utterance to multiple UtteranceQueues will work with the implementatoin of annoumcenetCompleteEmitter and priorityProperty.
When one Announcer emits the
announcementCompleteEmitter
listeners on theutterancePriorityListenerMap
s will be removed from both queues...