diff --git a/speechsynthesis/scripts/index.js b/speechsynthesis/scripts/index.js index 9b3b71a6..1ef00fb5 100755 --- a/speechsynthesis/scripts/index.js +++ b/speechsynthesis/scripts/index.js @@ -84,7 +84,7 @@ const eventList = ['start', 'end', 'mark', 'pause', 'resume', 'error', 'boundary']; eventList.forEach((event) => { synUtterance.addEventListener(event, (speechSynthesisEvent) => { - log(`Fired '${speechSynthesisEvent.type}' event at time '${speechSynthesisEvent.elapsedTime}' and character '${speechSynthesisEvent.charIndex}'.`); + log(`Fired '${speechSynthesisEvent.type}' event named '${speechSynthesisEvent.name}' at time '${speechSynthesisEvent.elapsedTime}' and character '${speechSynthesisEvent.charIndex} of length '${speechSynthesisEvent.charLength}.`); }); });