C2LC-668: Announcements are not working on Safari on Mac

Metadata

Source
C2LC-668
Type
Bug
Priority
N/A
Status
Done
Resolution
N/A
Assignee
N/A
Reporter
Simon Bates
Created
2022-08-17T09:18:23.994-0400
Updated
2022-09-08T10:22:25.121-0400
Versions
N/A
Fixed Versions
  1. Coding Env 1.5
Component
  1. Coding Environment

Description

Announcements are not working on at least Safari 15.6 on macOS 12.5

Announcements are working on iPadOS 15.6

There is no error in the console, just no sound being made.

This issue was also found when working on the Fluid Orator: FLUID-6736. That issue contains details of the problem, including a bug filed against WebKit: https://bugs.webkit.org/show_bug.cgi?id=243055

A workaround fix is possible: set the voice on the SpeechSynthesisUtterance instance before speaking. The following has been verified to work (it speaks) in the Safari developer console on Safari 15.6 on macOS 12.5:

voices = window.speechSynthesis.getVoices();
u = new SpeechSynthesisUtterance("hello");
u.voice = voices[0];
window.speechSynthesis.speak(u);