Reset the 'played' state

This commit is contained in:
Daniel O'Connor 2025-02-01 04:21:53 +00:00
commit 5f864599f0

View file

@ -43,12 +43,14 @@ export default defineComponent({
this.utterance = new SpeechSynthesisUtterance(this.step.text);
this.utterance.onstart = (event) => {
self.playing = true;
self.played = false;
// self.$emit("playing", true); // TODO: Consider if this event should bubble or a proxy of it should.
console.debug("Now playing: " + this.step.text);
};
this.utterance.onend = () => {
self.playing = false;
self.played = true;
// self.$emit("playing", false);
console.debug("Playback complete");